Teams
Upsert Team
Changed onUpsert a team record.
Inserts a new team or updates an existing one based on team_id.
post/api/v1/teams
Request
- Base URLhttps://developer.preciser.io
- URLhttps://developer.preciser.io/api/v1/teams
- Authnone 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
Example request
{
"color": "#552583",
"name": "Lakers",
"team_id": "60959335-3173-45b4-b656-276a05b22011"
}Response
Successful Response
Changes
- breaking
the
headerrequest parameterLeaguebecame required - breaking
the
headerrequest parameterx-api-keybecame required - breaking
headerrequest parameterLeaguelist-of-types was narrowed by removing typesnull - breaking
headerrequest parameterx-api-keylist-of-types was narrowed by removing typesnull - info
for the
headerrequest parameterLeague, the type was generalized from no type tostring - info
for the
headerrequest parameterx-api-key, the type was generalized from no type tostring
- breaking