PlayerSportCenter

Creates a PlayerSportCenter resource.

Creates a PlayerSportCenter resource.

post/player_sport_centers

Request

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

Request body

favoriteboolean
playerstring iri-reference
sportCenterstring iri-reference

Example request

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

Response

PlayerSportCenter resource created

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.