Administrators and the account owner only. An inbox channel belongs to at most one profile. Binding one that another profile already covers returns 422 carrying `conflicting_business_hour_id`, `inbox_id`, and `channel` in place of the usual `errors` object, and the whole write is rolled back. Under `calendar_24_7` the server stores `schedule` and `schedule_type` as null whatever the payload carries. Omitted keys keep their stored value and an explicit `null` is ignored rather than clearing the field. Sending `inbox_channels` replaces the whole set. Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.
Administrators and the account owner only.
An inbox channel belongs to at most one profile. Binding one that another profile already covers returns 422 carrying conflicting_business_hour_id, inbox_id, and channel in place of the usual errors object, and the whole write is rolled back.
Under calendar_24_7 the server stores schedule and schedule_type as null whatever the payload carries.
Omitted keys keep their stored value and an explicit null is ignored rather than clearing the field. Sending inbox_channels replaces the whole set.
Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.
bearerToken Personal access tokens created from the ThriveDesk UI. Create one under Integrations -> API Keys.
In: header
Business-hours profile identifier.
application/json
TypeScript Definitions
Use the request body type in TypeScript.
All fields optional. Sending inbox_channels replaces the whole set;
omitting it leaves the current bindings untouched.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/business-hours/string" \ -H "Content-Type: application/json" \ -d '{ "mode": "business_hours", "schedule_type": "custom", "schedule": [ { "day": "mon", "enabled": true, "start": "09:00", "end": "17:00" }, { "day": "tue", "enabled": true, "start": "09:00", "end": "17:00" }, { "day": "wed", "enabled": true, "start": "09:00", "end": "17:00" }, { "day": "thu", "enabled": true, "start": "09:00", "end": "17:00" }, { "day": "fri", "enabled": true, "start": "09:00", "end": "17:00" }, { "day": "sat", "enabled": false, "start": null, "end": null }, { "day": "sun", "enabled": false, "start": null, "end": null } ] }'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "mode": "calendar_24_7", "schedule_type": "standard", "schedule": [ { "day": "mon", "enabled": true, "start": "string", "end": "string" } ], "inbox_channels": [ { "inbox_id": "string", "channels": [ "email" ] } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }}length <= 120Value in
Value in
7 <= items <= 7