Competitions

Create Competition

Changed on

Create one season-scoped competition in the authenticated league.

post/api/v1/competitions

Request

  • Base URL
    https://developer.preciser.io
  • URL
    https://developer.preciser.io/api/v1/competitions
  • Auth
    none declared. Required headers: x-api-key, League

Headers

x-api-keystring required

Required API key issued by Preciser.

Leaguestring required

Required tenant/database selector, for example pitchbio-master.

Request body

seasonstring required
competition_idstring required
namestring nullable

Response

Successful Response

seasonstring required
competition_idstring required
namestring required
activeboolean required
created_atstring date-time required
updated_atstring date-time required

Changes

    • breaking

      the header request parameter League became required

    • breaking

      the header request parameter x-api-key became required

    • breaking

      header request parameter League list-of-types was narrowed by removing types null

    • breaking

      header request parameter x-api-key list-of-types was narrowed by removing types null

    • info

      for the header request parameter League, the type was generalized from no type to string

    • info

      for the header request parameter x-api-key, the type was generalized from no type to string

    • info

      endpoint added