Team
Ask to join a team.
Ask to join a team, the team captain needs to accept.
post/teams/{id}/join
Request
- Base URL: https://api.spash.com
- URL: https://api.spash.com/teams/{id}/join
- Auth: one of:
- API key in header Authorization
- HTTP bearer
Path parameters
idstring required
Team identifier
Request body
Example request
{
"registerCreator": true,
"primaryColor": "#FFFFFF",
"secondaryColor": "#FFFFFF",
"sportCenter": {
"coordinates": [
0,
0
],
"visible": true,
"pedroVersionTarget": "undefined",
"timeZone": "Europe/Paris",
"durationChoices": [
3600,
5400,
7200
],
"language": "en",
"distanceUnite": "km",
"country": "https://example.com/",
"tablets": [
"https://example.com/"
],
"tags": [
"https://example.com/"
]
},
"tags": [
"https://example.com/"
]
}Response
Team resource created
Example response
{
"primaryColor": "#FFFFFF",
"secondaryColor": "#FFFFFF",
"playerTeams": [
{
"player": {
"playerSportCenters": [
{
"createdAt": "CURRENT_TIMESTAMP",
"updatedAt": "CURRENT_TIMESTAMP"
}
],
"createdAt": "CURRENT_TIMESTAMP",
"updatedAt": "CURRENT_TIMESTAMP"
},
"createdAt": "CURRENT_TIMESTAMP",
"updatedAt": "CURRENT_TIMESTAMP"
}
],
"sportCenter": {
"coordinates": [
0,
0
],
"visible": true,
"pedroVersionTarget": "undefined",
"timeZone": "Europe/Paris",
"durationChoices": [
3600,
5400,
7200
],
"language": "en",
"distanceUnite": "km",
"country": {
"currency": "EUR"
},
"tablets": [
{
"createdAt": "CURRENT_TIMESTAMP",
"updatedAt": "CURRENT_TIMESTAMP"
}
],
"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.