Booking
Creates a Booking resource.
Creates a Booking resource.
post/bookings
Request
- Base URL: https://api.spash.com
- URL: https://api.spash.com/bookings
- Auth: one of:
- API key in header Authorization
- HTTP bearer
Request body
Example request
{
"competition": "https://example.com/",
"team": "https://example.com/"
}Response
Booking resource created
Example response
{
"status": "created",
"player": {
"createdAt": "CURRENT_TIMESTAMP",
"updatedAt": "CURRENT_TIMESTAMP"
},
"competition": {
"sessionDuration": 3000,
"breakDuration": 300,
"status": "not_played",
"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"
},
"team": {
"primaryColor": "#FFFFFF",
"secondaryColor": "#FFFFFF",
"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.