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. 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.
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
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/business-hours" \ -H "Content-Type: application/json" \ -d '{ "name": "Support hours", "description": "Weekday coverage", "mode": "business_hours", "schedule_type": "standard", "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 } ], "inbox_channels": [ { "inbox_id": "3f7c1e94-2b6a-4d0e-8c5f-9a1b2c3d4e5f", "channel": "email" } ] }'{ "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" }}List business-hours profiles GET
List business-hours profiles. 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.
Delete a business-hours profile DELETE
Administrators and the account owner only. Permanent, and it releases every inbox channel the profile covered. 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.
Unique within the organization.
length <= 120Value in
Required when mode is business_hours.
Value in
Required when mode is business_hours. Exactly seven entries,
each weekday present once.
7 <= items <= 7