curl --request PUT \
--url https://api.open.cx/office-hours/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"iana_timezone": "<string>",
"shifts": [
{
"id": "<string>",
"day_of_week": "everyday",
"start_time": "<string>",
"end_time": "<string>"
}
]
}
'{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Update an office hours schedule. The shifts array replaces all existing shifts — include all shifts you want to keep.
curl --request PUT \
--url https://api.open.cx/office-hours/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"iana_timezone": "<string>",
"shifts": [
{
"id": "<string>",
"day_of_week": "everyday",
"start_time": "<string>",
"end_time": "<string>"
}
]
}
'{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?