v1
latestOpenAPI 3.0.02026-07-1498671635.3 KBRestaurants
publicly-accessible
Create or update service times
Creates or updates the service times (the weekly times at which a restaurant is in service for delivery or collection) for a restaurant
put/restaurants/{tenant}/{restaurantId}/servicetimes
Path parameters
tenantstring required
Two letter code of restaurant's tenant
restaurantIdstring required
The restaurant identifier
Request body
Example request
{
"desiredServiceTimes": {
"friday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
},
"monday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
},
"saturday": {
"collection": [
{
"end": "23:00:00",
"start": "12:00:00"
}
],
"delivery": [
{
"end": "00:00:00",
"start": "12:00:00"
}
]
},
"sunday": {
"collection": [
{
"end": "23:00:00",
"start": "12:00:00"
}
],
"delivery": [
{
"end": "00:00:00",
"start": "12:00:00"
}
]
},
"thursday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
},
"tuesday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
},
"wednesday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
}
}
}Response
The new service times
Example response
{
"desiredServiceTimes": {
"friday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
},
"monday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
},
"saturday": {
"collection": [
{
"end": "23:00:00",
"start": "12:00:00"
}
],
"delivery": [
{
"end": "00:00:00",
"start": "12:00:00"
}
]
},
"sunday": {
"collection": [
{
"end": "23:00:00",
"start": "12:00:00"
}
],
"delivery": [
{
"end": "00:00:00",
"start": "12:00:00"
}
]
},
"thursday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
},
"tuesday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
},
"wednesday": {
"collection": [
{
"end": "14:00:00",
"start": "12:00:00"
},
{
"end": "23:00:00",
"start": "17:00:00"
}
],
"delivery": [
{
"end": "13:30:00",
"start": "12:00:00"
},
{
"end": "00:00:00",
"start": "18:00:00"
}
]
}
}
}