Create Time Off Category

Creates a time off category. Category names are unique among all of the company's categories, including disabled and deleted ones; a name collision returns a 409 that identifies the conflicting category so the caller can resolve it (for example by choosing a different name).

OAuth Scopes: time_off:categories.write

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

Data contract for creating a time off category.

string
required
length ≤ 50

The name of the time off category. Must be unique among the company's active categories.

string
enum
required

The unit of measurement for the time off category.

Allowed:
enum

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

The icon for the category. Omit to use the default icon.

boolean
Defaults to true

Whether time off in this category is paid.

boolean
Defaults to false

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

Headers
string
enum
Defaults to application/json

Generated from available response 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