Skip to content

Zoho: Shift hours schemas

12 Zoho schemas with complete fields and constraints.

← Shift hours operations · All schemas

Delete a shift hour — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents the response body that contains the shift hour configurations and the aggregate count of shifts with assigned users.
Additional keys: not allowed
shift_hoursarrayRequired within parentLists the shift hour configurations in the request or response.
Maximum items: 50
shift_hours[]objectEach itemEach object represents one shift hour with its timing, break hours, holidays, and assigned users.
Additional keys: not allowed
shift_hours[].codestringRequired within parentRepresents the response code of the operation.
Known values: SUCCESS
shift_hours[].detailsobjectRequired within parentRepresents additional details about the outcome of the operation.
Additional keys: not allowed
shift_hours[].details.idstringRequired within parentRepresents the unique identifier of the shift hour affected by the operation.
Maximum length: 100
shift_hours[].messagestringRequired within parentRepresents the message that describes the outcome of the operation.
Maximum length: 100
shift_hours[].statusstringRequired within parentRepresents the status of the operation.
Known values: success

Get a shift hour — response body — shift count, shift hours shift hours item break hours null item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the days the break applies to and the break timing for those days.
Additional keys: not allowed
break_daysarrayRequired within parentLists the days of the week on which the break hour applies.
Maximum items: 7
break_days[]stringEach itemEach string represents a day of the week on which the break hour applies.
Maximum length: 100
custom_timingJSONRequired within parent
custom_timing (anyOf 1)arrayAlternativeLists per-day break timing overrides.

This field is **mandatory** when the parent **same_as_everyday** is **false**. A day can have at most two breaks and the total break time on a day cannot exceed two hours.
Maximum items: 50
custom_timing (anyOf 1)[]ModelEach itemExpand Get a shift hour — response body — shift count, shift hours shift hours item break hours null item custom timing Lists per-day break timing overrides item
custom_timing (anyOf 2)nullAlternativeLists per-day break timing overrides.

This field is **mandatory** when the parent **same_as_everyday** is **false**. A day can have at most two breaks and the total break time on a day cannot exceed two hours.
Maximum items: 50
custom_timing (anyOf 2)[]ModelEach itemExpand Get a shift hour — response body — shift count, shift hours shift hours item break hours null item custom timing Lists per-day break timing overrides item
daily_timingarrayRequired within parentRepresents the start and end time of the break
in `HH:MM` 24-hour format, applied uniformly
to every day the break is scheduled.


This field is **mandatory** when the parent
**same_as_everyday** is **true**. A day can
have at most two breaks and the total break
time on a day cannot exceed two hours.

Maximum items: 50
daily_timing[]stringEach itemEach string represents the start time or end time of the window in
`HH:MM` 24-hour format.

Maximum length: 5
Pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
idstringRequired within parentRepresents the unique identifier of the break hour within the shift hour.
Maximum length: 100
same_as_everydaybooleanRequired within parentIndicates whether the break hour follows the
same timing on every day the break is
scheduled.


**Possible values**:

- **true** - the break hour uses the same
timing every day, and **daily_timing** becomes
mandatory.

- **false** - the break hour uses different
timing for different days, and
**custom_timing** becomes mandatory.

Referenced models: Get a shift hour — response body — shift count, shift hours shift hours item break hours null item custom timing Lists per-day break timing overrides item

Get a shift hour — response body — shift count, shift hours shift hours item break hours null item custom timing Lists per-day break timing overrides item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the day of the week and the start and end time of the break on that day.
Additional keys: not allowed
break_timingarrayRequired within parentRepresents the start and end time of the break on the specified day
in `HH:MM` 24-hour format. A break must
be longer than 15 minutes and shorter
than 2 hours.

Maximum items: 7
break_timing[]stringEach itemEach string represents the start time or end time of the window in
`HH:MM` 24-hour format.

Maximum length: 5
Pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
daysstringRequired within parentRepresents the day of the week to which
this custom break timing applies.


**Possible values**:

- Monday

- Tuesday

- Wednesday

- Thursday

- Friday

- Saturday

- Sunday

Maximum length: 100

Get a shift hour — response body — shift count, shift hours shift hours item custom timing null item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the day of the week and the start and end time of the shift on that day.
Additional keys: not allowed
daysstringRequired within parentRepresents the day of the week to which this
custom shift timing applies.


**Possible values**:

- Monday

- Tuesday

- Wednesday

- Thursday

- Friday

- Saturday

- Sunday

Maximum length: 100
shift_timingarrayRequired within parentRepresents the start and end time of the shift on the specified
day in `HH:MM` 24-hour format.

Maximum items: 7
shift_timing[]stringEach itemEach string represents the start time or end time of the window in
`HH:MM` 24-hour format.

Maximum length: 5
Pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$

Get a shift hour — response body — shift count, shift hours shift hours item holidays null item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the date and the name of the holiday.
Additional keys: not allowed
datestringRequired within parentRepresents the date of the holiday in `YYYY-MM-DD` format.
Format: date
idstringRequired within parentRepresents the unique identifier of the holiday.
Maximum length: 100
namestringRequired within parentRepresents the name of the holiday. The name must not contain the special characters.
Maximum length: 80
userFmtstringRequired within parentRepresents the holiday date formatted using the date format configured for the requesting user.
Maximum length: 100
yearobjectRequired within parentRepresents the year of the holiday.
Additional keys: not allowed

Get a shift hour — response body — shift count, shift hours shift hours item users null item

FieldTypePresenceDescription and constraints
$objectRootEach object represents one user assigned to the shift hour, including the user details and the effective date of the assignment.
Additional keys: not allowed
effective_fromstringRequired within parentRepresents the date from which the user assignment to the shift hour becomes effective, in `YYYY-MM-DD` format. The date must be in the future and must not be more than six months ahead of the current date.
Format: date
emailstringRequired within parentRepresents the email address of the user assigned to the shift hour.
Maximum length: 100
idstringRequired within parentRepresents the unique identifier of the user assigned to the shift hour.
Maximum length: 100
namestringRequired within parentRepresents the full name of the user assigned to the shift hour.
Maximum length: 100
roleobjectRequired within parentRepresents the role information of the user assigned to the shift hour.
Additional keys: not allowed
role.idstringRequired within parentRepresents the unique identifier of the role assigned to the user.
Maximum length: 100
role.namestringRequired within parentRepresents the name of the role assigned to the user.
Maximum length: 100
zuidstringRequired within parentRepresents the unique identifier of the user assigned to the shift hour.
Maximum length: 100

Get shift hours — response body — shift count, shift hours shift hours item break hours null item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the days the break applies to and the break timing for those days.
Additional keys: not allowed
break_daysarrayRequired within parentLists the days of the week on which the break
hour applies.


Possible values:

- Monday

- Tuesday

- Wednesday

- Thursday

- Friday

- Saturday

- Sunday

Maximum items: 7
break_days[]stringEach itemRepresents one day of the week on which the break hour applies.


Known values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
custom_timingJSONRequired within parent
custom_timing (anyOf 1)arrayAlternativeLists per-day break timing overrides. This field is **mandatory** when the parent **same_as_everyday** is **false**.

A day can have at most two breaks and the total break time on a day cannot exceed two hours.
Maximum items: 7
custom_timing (anyOf 1)[]ModelEach itemExpand Get shift hours — response body — shift count, shift hours shift hours item break hours null item custom timing null item
custom_timing (anyOf 2)nullAlternativeLists per-day break timing overrides. This field is **mandatory** when the parent **same_as_everyday** is **false**.

A day can have at most two breaks and the total break time on a day cannot exceed two hours.
Maximum items: 7
custom_timing (anyOf 2)[]ModelEach itemExpand Get shift hours — response body — shift count, shift hours shift hours item break hours null item custom timing null item
daily_timingJSONRequired within parent
daily_timing (anyOf 1)arrayAlternativeRepresents the start and end time of the break
in `HH:MM` 24-hour format, applied uniformly
to every day the break is scheduled.


This field is **mandatory** when the parent
**same_as_everyday** is **true**. A day can
have at most two breaks and the total break
time on a day cannot exceed two hours.

Maximum items: 2
Minimum items: 2
daily_timing (anyOf 1)[]stringEach itemEach string represents the start time or end time of the window in `HH:MM` 24-hour format.
`HH:MM` 24-hour format. "

Maximum length: 5
Pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
daily_timing (anyOf 2)nullAlternativeRepresents the start and end time of the break
in `HH:MM` 24-hour format, applied uniformly
to every day the break is scheduled.


This field is **mandatory** when the parent
**same_as_everyday** is **true**. A day can
have at most two breaks and the total break
time on a day cannot exceed two hours.

Maximum items: 2
Minimum items: 2
daily_timing (anyOf 2)[]stringEach itemEach string represents the start time or end time of the window in `HH:MM` 24-hour format.
`HH:MM` 24-hour format. "

Maximum length: 5
Pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
idstringRequired within parentRepresents the unique identifier of the break hour within the shift hour.
Maximum length: 100
Pattern: ^[0-9]+$
same_as_everydaybooleanRequired within parentIndicates whether the break hour follows the
same timing on every day the break is
scheduled.


Possible values:

- `true` - the break hour uses the same timing
every day, and `daily_timing` becomes
mandatory.

- `false` - the break hour uses different
timing for different days, and `custom_timing`
becomes mandatory.

Referenced models: Get shift hours — response body — shift count, shift hours shift hours item break hours null item custom timing null item

Get shift hours — response body — shift count, shift hours shift hours item break hours null item custom timing null item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the day of the week and the start and end time of the break on that day.
Additional keys: not allowed
break_timingarrayRequired within parentRepresents the start and end time of the break on the specified day
in `HH:MM` 24-hour format. A break must
be longer than 15 minutes and shorter
than 2 hours.

Maximum items: 2
Minimum items: 2
break_timing[]stringEach item"Represents the start time or end time of the window in `HH:MM`
24-hour format. "

Maximum length: 5
Pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
daysstringRequired within parentRepresents the day of the week to which
this custom break timing applies.


**Possible values**:

- Monday

- Tuesday

- Wednesday

- Thursday

- Friday

- Saturday

- Sunday

Known values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

Get shift hours — response body — shift count, shift hours shift hours item custom timing Lists per-day shift timing overrides item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the day of the week and the start and end time of the shift on that day. This field is mandatory when **same_as_everyday** is **false**.
Additional keys: not allowed
daysstringRequired within parentRepresents the day of the week to which this
custom shift timing applies.


**Possible values**:

- Monday

- Tuesday

- Wednesday

- Thursday

- Friday

- Saturday

- Sunday

Known values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
shift_timingarrayRequired within parentRepresents the start and end time of the shift on the specified
day in `HH:MM` 24-hour format.

Maximum items: 2
Minimum items: 2
shift_timing[]stringEach itemRepresents the start time or end time of the window in `HH:MM`
24-hour format. The first array entry is the
start time and the second is the end time.

Maximum length: 5
Pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$

Get shift hours — response body — shift count, shift hours shift hours item holidays null item

FieldTypePresenceDescription and constraints
$objectRootEach entry specifies the date and the name of the holiday.
Additional keys: not allowed
datestringRequired within parentRepresents the date of the holiday in `YYYY-MM-DD` format.
Format: date
idstringRequired within parentRepresents the unique identifier of the holiday.
Maximum length: 100
Pattern: ^[0-9]+$
namestringRequired within parentRepresents the name of the holiday. The name must not contain the special characters.
Maximum length: 80
userFmtstringRequired within parentRepresents the holiday date formatted using the date format configured for the requesting user.
Maximum length: 100
yearstringRequired within parentRepresents the year of the holiday.
Maximum length: 100

Get shift hours — response body — shift count, shift hours shift hours item users Lists the users assigned to the shift hour item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the user and the date from which the assignment becomes effective.
Additional keys: not allowed
effective_fromstringRequired within parentRepresents the date from which the user assignment to the shift hour becomes effective, in `YYYY-MM-DD` format. The date must be in the future and must not be more than six months ahead of the current date.
Format: date
emailstringRequired within parentRepresents the email address of the user assigned to the shift hour.
Format: email
idstringRequired within parentRepresents the unique identifier of the user assigned to the shift hour.
Maximum length: 100
Pattern: ^[0-9]+$
namestringRequired within parentRepresents the full name of the user assigned to the shift hour.
Maximum length: 100
roleobjectRequired within parentRepresents the role information of the user assigned to the shift hour.
Additional keys: not allowed
role.idstringRequired within parentRepresents the unique identifier of the role assigned to the user.
Maximum length: 100
Pattern: ^[0-9]+$
role.namestringRequired within parentRepresents the name of the role assigned to the user.
Maximum length: 100
zuidstringRequired within parentRepresents the unique identifier of the user assigned to the shift hour.
Maximum length: 100

Update shift hours — request body — body shift hours item break hours item custom timing item

FieldTypePresenceDescription and constraints
$objectRootEach object specifies the day of the week and the start and end time of the break on that day.
Additional keys: not allowed
break_timingarrayOptionalRepresents the start and end time of the break on the specified day
in `HH:MM` 24-hour format. A break must be
longer than 15 minutes and shorter than 2
hours.

Maximum items: 7
break_timing[]stringEach itemEach string represents the start time or end time of the window in
`HH:MM` 24-hour format.

Maximum length: 5
Pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
daysstringOptionalRepresents the day of the week to which
this custom break timing applies.


**Possible values**:

- Monday

- Tuesday

- Wednesday

- Thursday

- Friday

- Saturday

- Sunday

One of: Monday, Thursday, Friday, Sunday, Wednesday, Tuesday, Saturday

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.