Player

Enable a player's account. The response will be JSON.

Replaces the Player resource.

put/players/{id}/enable/{token}

Request

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

Path parameters

idstring required

Player identifier

Request body

emailstring email required
namestring required
passwordstring nullable
newsletterEnabledboolean
phoneNumberstring nullable
registrationMobileboolean
language'en' | 'es' | 'fr' | 'it'
externalDatastring[] nullable
gender'M' | 'F'
scope'public' | 'private'
favoriteSportCenterstring iri-reference nullable
avatarImageUrlstring nullable

Url of the avatar image. To remove, set it to null.

imagestring iri-reference nullable
tagsstring[]
playerSportCentersstring[]

Example request

{
  "newsletterEnabled": true,
  "language": "en",
  "gender": "M",
  "scope": "public",
  "favoriteSportCenter": "https://example.com/",
  "image": "https://example.com/",
  "tags": [
    "https://example.com/"
  ],
  "playerSportCenters": [
    "https://example.com/"
  ]
}

Response

Account enabled.

Changes

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