Deskhero Developer Hub
Back to deskhero.com
Sla

Schedules

Returns the workspace's business-hours schedules, each with its time zone and its weekday open windows, default schedule first and the rest by name, unpaged. A schedule covers weekly opening hours only, with no holiday or date-exception support, and an SLA rule that points at no schedule counts calendar hours around the clock instead.

POST /api/{tenant:minlength(2)}/v{version:apiVersion}/sla/schedules
Authorisation
Minimum role: ADMIN

Request arguments

Name Type Source
inputDTO_business_scheduleBody
Request body example

Response

Status
200 (OK)
Type
DTO_business_schedule
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_business_schedule
NameTypeReadOnlyDescription
daysDTO_business_schedule_day[]One entry per open weekday. Days that are missing are closed.
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
idInt32ReadOnlyLeave empty when creating
nameStringName
time_zoneStringIANA time zone id the day windows are expressed in, e.g. "Europe/Stockholm". Required - the schedule owns its time zone so that deadlines already stamped on tickets cannot shift when the workspace time zone is edited.
is_defaultBooleanThe schedule offered first in the UI
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_business_schedule_day
NameTypeReadOnlyDescription
day_of_weekInt320 = Sunday ... 6 = Saturday (System.DayOfWeek)
open_minutesInt32Minutes from local midnight when the window opens (0-1439)
close_minutesInt32Minutes from local midnight when the window closes (1-1440)
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel

Generated Aug 4, 2026 18:37