McMain icon

McMain

Interact with McMain API

Hour Type → Update

AI-generated

Summary

Update an hour type record with selected fields.

Inputs

  • id (required) — ID of the hour type to update.
  • updateFields — Collection of fields to update, such as description, planning, type, and color.
  • requestOptions — Additional request configuration like batching, timeout, and proxy settings.

Output shape

a single updated hour type record

Returns the updated hour type object; optional fields may be omitted and errors are wrapped in an error envelope.

Examples

Example 1: Update hour type 123 with a new description and mark it as planning.

id: 123, updateFields: {description: 'Weekday shift', planning: true}

Example 2: Change color and type using batch settings.

id: 456, updateFields: {color: 'blue', type: 'break'}, requestOptions: {batching: {batchSize: 100}}

Discussion