Teams

Upsert a team record.

Inserts a new team or updates an existing one based on team_id.

post/api/v1/teams

Request

  • Base URL
    https://developer.preciser.io
  • URL
    https://developer.preciser.io/api/v1/teams
  • 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

team_idstring uuid required

Team ID (must be a valid UUID)

namestring required

Team name (used for alias, market, and name)

colorstring nullable

Team color (hex code), defaults to #424242 if not provided

Example request

{
  "color": "#552583",
  "name": "Lakers",
  "team_id": "60959335-3173-45b4-b656-276a05b22011"
}

Response

Successful Response

successboolean required

Whether the operation was successful

messagestring required

Status message

team_idstring required

The team_id of the upserted team

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