Update business hours
curl --request PATCH \ --url https://example.com/api/v1/tickets/messaging/business-hours \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "rows": [ { "days": [ 1 ], "end": "example", "start": "example" } ] }'Replaces the workspace’s business-hours rows, used to measure SLAs against working time and to decide when a ticket arrived off-hours for the auto-reply. Each row selects one or more days and a start and end time; times are always in the workspace timezone, which this endpoint does not accept. Requires the settings.manage permission.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
object
Example generated
{ "enabled": true, "rows": [ { "days": [ 1 ], "end": "example", "start": "example" } ]}Responses
Section titled “Responses”The updated business-hours schedule, with the workspace timezone.
object
A workspace’s business-hours schedule.
object
Whether business hours are enforced (SLA measurement and the auto-reply gate).
Open windows. A day’s business time is the union of every row that covers it.
object
Days this row covers, 0 = Sunday … 6 = Saturday. A day may appear in several rows.
HH:MM, 24-hour, in the workspace timezone; after start.
HH:MM, 24-hour, in the workspace timezone.
Read-only. The workspace timezone every row is expressed in; change it in the workspace preferences.
Example generated
{ "data": { "enabled": true, "rows": [ { "days": [ 1 ], "end": "example", "start": "example" } ], "timezone": "example" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC