PlayerSportCenter

Retrieves the collection of PlayerSportCenter resources.

Retrieves the collection of PlayerSportCenter resources.

get/players/{id}/player_sport_centers

Request

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

Path parameters

idstring required

PlayerSportCenter identifier

Query parameters

pageinteger

The collection page number

itemsPerPageinteger

The number of items per page

paginationboolean

Enable or disable pagination

staffboolean
player.createdAt[before]string
player.createdAt[strictly_before]string
player.createdAt[after]string
player.createdAt[strictly_after]string
createdAt[before]string
createdAt[strictly_before]string
createdAt[after]string
createdAt[strictly_after]string
updatedAt[before]string
updatedAt[strictly_before]string
updatedAt[after]string
updatedAt[strictly_after]string
order[player.createdAt]'asc' | 'desc'
order[createdAt]'asc' | 'desc'
order[updatedAt]'asc' | 'desc'
player.idinteger
player.id[]integer[]
sportCenter.idinteger
sportCenter.id[]integer[]
managerboolean
coachboolean
player.enabledboolean
player.emailstring

Response

PlayerSportCenter collection

idinteger
managerboolean
favoriteboolean
startSessionAllowedboolean
salesboolean
coachboolean
createdAtstring date-time
updatedAtstring date-time

Example response

[
  {
    "player": {
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "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"
  }
]

Changes

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