PlayerTeam

Replaces the PlayerTeam resource.

Replaces the PlayerTeam resource.

put/player_teams/{id}

Request

  • Base URL: https://api.spash.com
  • URL: https://api.spash.com/player_teams/{id}
  • Auth: one of:
    • API key in header Authorization
    • HTTP bearer

Path parameters

idstring required

PlayerTeam identifier

Request body

adminboolean
acceptedboolean
jerseyNumberinteger nullable
playerstring iri-reference
teamstring iri-reference

Example request

{
  "player": "https://example.com/",
  "team": "https://example.com/"
}

Response

PlayerTeam resource updated

idinteger
adminboolean
acceptedboolean
jerseyNumberinteger nullable
createdAtstring date-time
updatedAtstring date-time

Example response

{
  "player": {
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  },
  "team": {
    "primaryColor": "#FFFFFF",
    "secondaryColor": "#FFFFFF",
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  },
  "ngtvSessionPlayers": [
    {
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    }
  ],
  "createdAt": "CURRENT_TIMESTAMP",
  "updatedAt": "CURRENT_TIMESTAMP"
}

Changes

No recorded changes to this operation across all 1 revision of this API.