SETTO API

Edit a player’s name or contact data (needs the `manage` scope)

PATCH
/v1/external/tournaments/{idx}/players/{playerIdx}

Changes only the keys sent (at least one). An email can be changed but not removed; a phone can be removed with null. Contact data is never answered back (hasEmail, hasPhone). A team name built from player names is not renamed (dashboard parity). A player who also plays a tournament outside this credential’s reach is edited in the dashboard. Recorded in «Actividad».

Authorization

apiToken
AuthorizationBearer <token>

API token (organization or personal)

In: header

Path Parameters

idx*string

Tournament identifier

Formatuuid
playerIdx*string

Player profile identifier

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/external/tournaments/497f6eca-6276-4993-bfeb-53cbbbba6f08/players/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "player": {    "idx": "c9d0e1f2-a3b4-4567-8c8d-9e0f1a2b3c4d",    "firstName": "Mario",    "lastName": "Lugo",    "avatar": "https://cdn.setto.io/avatars/mario-lugo.png"  },  "hasEmail": true,  "hasPhone": false}