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
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
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.