Restaurants
publicly-accessible
Create or update service times
Changed onCreates 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
Request
- Base URLhttps://uk.api.just-eat.io
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tenantstring required
Two letter code of restaurant's tenant
restaurantIdstring required
The restaurant identifier
Request body
Example request
{
"desiredServiceTimes": {
"monday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"tuesday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"wednesday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"thursday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"friday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"saturday": {
"collection": [
{
"start": "12:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "00:00:00"
}
]
},
"sunday": {
"collection": [
{
"start": "12:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "00:00:00"
}
]
}
}
}Response
The new service times
Example response
{
"desiredServiceTimes": {
"monday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"tuesday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"wednesday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"thursday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"friday": {
"collection": [
{
"start": "12:00:00",
"end": "14:00:00"
},
{
"start": "17:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "13:30:00"
},
{
"start": "18:00:00",
"end": "00:00:00"
}
]
},
"saturday": {
"collection": [
{
"start": "12:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "00:00:00"
}
]
},
"sunday": {
"collection": [
{
"start": "12:00:00",
"end": "23:00:00"
}
],
"delivery": [
{
"start": "12:00:00",
"end": "00:00:00"
}
]
}
}
}Changes
- warning
the optional response header
Retry-Afterremoved for the status500
- warning