Update Time Off Category

Partially updates a time off category using JSON Merge Patch semantics. Only fields present in the request body are changed. Setting enabled to false disables the category and removes it from payroll; disabling an already disabled category is a no-op. Changing unit converts every existing balance, request, and history amount for the category and requires hoursPerDay. Category names are unique among all of the company's categories, including disabled and deleted ones, so renaming onto a name already in use returns a 409 identifying the category that holds it. Accepts both application/merge-patch+json and application/json.

OAuth Scopes: time_off:categories.write

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The time off category ID.

Body Params

Data contract for partially updating a time off category. All fields are optional, but at least one must be supplied; only fields present in the request body are updated.

string
length ≤ 50

The name of the time off category. Must be unique among all of the company's categories, including disabled and deleted ones; a collision returns a 409 identifying the category that holds the name.

string
enum

The unit of measurement for the time off category. Changing this converts every existing balance, request, and history amount for the category, and requires hoursPerDay.

Allowed:
enum

The color for the category, as a six character hex code without a leading "#". Must be one of the supported category colors. Send null to use the company color.

string

The icon for the category.

boolean

Whether time off in this category is paid.

boolean

Whether this category should be included in payroll. Only takes effect when the company has payroll with timecard auto sync enabled.

boolean

Whether the category is available for new time off requests. Setting this to false disables the category and also removes it from payroll. Disabling an already disabled category is a no-op.

number
1 to 24

The number of hours in a work day, used to convert existing amounts when unit changes. Required when unit differs from the category's current unit, and ignored otherwise.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/merge-patch+json

Generated from available request content types

Allowed:
Responses

Language
Credentials
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json