Player

Retrieves a Player resource.

Retrieves a Player resource.

get/players/{id}

Request

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

Path parameters

idstring required

Player identifier

Response

Player resource

idinteger
namestring required
language'en' | 'es' | 'fr' | 'it'
gender'M' | 'F'
scope'public' | 'private'
lastLoggedAtstring date-time nullable
avatarImageUrlstring nullable

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

createdAtstring date-time
updatedAtstring date-time
managerboolean

Is player a manager of a sportCenter?

coachboolean

Is player a coach of a sportCenter?

managedSportCentersCollectionPlayerPlayerReadRead
playerSportsCollectionPlayerPlayerReadRead

Example response

{
  "language": "en",
  "gender": "M",
  "scope": "public",
  "favoriteSportCenter": {
    "coordinates": [
      0,
      0
    ],
    "visible": true,
    "timeZone": "Europe/Paris",
    "durationChoices": [
      3600,
      5400,
      7200
    ],
    "language": "en",
    "distanceUnite": "km",
    "country": {
      "currency": "EUR"
    },
    "tags": [
      {
        "createdAt": "CURRENT_TIMESTAMP",
        "updatedAt": "CURRENT_TIMESTAMP"
      }
    ],
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  },
  "playerSportCenters": [
    {
      "sportCenter": {
        "coordinates": [
          0,
          0
        ],
        "visible": true,
        "timeZone": "Europe/Paris",
        "durationChoices": [
          3600,
          5400,
          7200
        ],
        "language": "en",
        "distanceUnite": "km",
        "country": {
          "currency": "EUR"
        },
        "tags": [
          {
            "createdAt": "CURRENT_TIMESTAMP",
            "updatedAt": "CURRENT_TIMESTAMP"
          }
        ],
        "createdAt": "CURRENT_TIMESTAMP",
        "updatedAt": "CURRENT_TIMESTAMP"
      },
      "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.