curl --request PUT \
--url https://example.com/chrono/schedules/{schedule} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "My Operating Hours",
"timezone": "UTC",
"hours": [
{
"day": "sunday",
"start": "<string>",
"end": "<string>"
}
],
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
]
}'
{
"id": "6fbad4f2-1eb8-4ef7-abd0-bc1ef1a7e5f9",
"name": "My Operating Hours",
"timezone": "America/Los_Angeles",
"active": true,
"updated_at": "2025-03-04T16:00:00Z",
"created_at": "2025-03-01T08:30:00Z",
"hours": [
{
"day": "monday",
"start": "09:00",
"end": "17:00"
}
],
"metadata": [
{
"key": "some_label",
"value": "some_value"
}
]
}
Standard Bearer token in the Authorization
header as Bearer <token>
with the correct scopes (e.g., schedule:view
, schedule:create
, etc.).
The schedule UUID
Updated schedule
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://example.com/chrono/schedules/{schedule} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "My Operating Hours",
"timezone": "UTC",
"hours": [
{
"day": "sunday",
"start": "<string>",
"end": "<string>"
}
],
"metadata": [
{
"key": "<string>",
"value": "<string>"
}
]
}'
{
"id": "6fbad4f2-1eb8-4ef7-abd0-bc1ef1a7e5f9",
"name": "My Operating Hours",
"timezone": "America/Los_Angeles",
"active": true,
"updated_at": "2025-03-04T16:00:00Z",
"created_at": "2025-03-01T08:30:00Z",
"hours": [
{
"day": "monday",
"start": "09:00",
"end": "17:00"
}
],
"metadata": [
{
"key": "some_label",
"value": "some_value"
}
]
}