Player

Creates a Player resource.

Creates a Player resource.

post/players

Request

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

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

Player resource created

idinteger
emailstring email required
namestring required
enabledboolean
rolesstring[] nullable
facebookIdstring nullable
isVisibleInRankingsboolean
newsletterEnabledboolean
passwordTokenTokenstring nullable
passwordTokenExpirationTimeinteger nullable
phoneNumberstring nullable
registrationMobileboolean
language'en' | 'es' | 'fr' | 'it'
externalDatastring[] nullable
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
adminboolean

Is player an admin?

managerboolean

Is player a manager of a sportCenter?

coachboolean

Is player a coach of a sportCenter?

managedSportCentersCollectionPlayerPlayerReadReadPrivateDataPlayerRead
playerSportsCollectionPlayerPlayerReadReadPrivateDataPlayerRead

Example response

{
  "roles": [
    "ROLE_USER"
  ],
  "isVisibleInRankings": true,
  "newsletterEnabled": true,
  "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.