Replace opening hours
curl --request PUT \
--url https://api.chataigne.ai/v1/locations/{location_id}/opening_hours \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}
'{
"object": "opening_hours",
"location_id": "<string>",
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}Location settings
Replace opening hours
PUT
/
v1
/
locations
/
{location_id}
/
opening_hours
Replace opening hours
curl --request PUT \
--url https://api.chataigne.ai/v1/locations/{location_id}/opening_hours \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}
'{
"object": "opening_hours",
"location_id": "<string>",
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}Authorizations
Location/organization API key.
Path Parameters
Body
application/json
⌘I