Create an absence hours code

Creates a new absence hours code. Only code is required; omitted fields take the
defaults documented on each field, which match a new code created in the app.

Worked and absence codes share one namespace, so the request is refused with 409 if the
code already exists in either list (case-insensitive). Concurrent API requests for the same
code are serialised so only one can succeed.

The new code is not added to any user profile's code visibility, entitlement category or
general absence list; configure those in the app if employees need to book it. An audit entry is written.

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

The new absence hours code.

Payload to create an absence hours code.

string | null

Human-readable description. Create default: empty.

string | null

Code sent to payroll and reporting exports. Create default: empty.

double | null
0 to 1000

Pay multiplier, 0 to 1000, at most two decimal places. Create default: 1.

string | null
^#[0-9A-Fa-f]{6}$

Display colour as #RRGGBB. Create default: #3b82f6.

boolean | null

Whether the code is available for new absences. Create default: true.

boolean | null

Whether absence on this code is paid. Create default: true.

boolean | null

Whether a day counts as a full-day absence for WTD rules. Create default: false.

boolean | null

Whether hours count toward Group Planner hours totals. Create default: true.

string
required
length between 0 and 100

The new code string. Required, 1-100 characters after trimming. Must not already exist as a
worked or absence code (case-insensitive). Cannot be changed through this API once created.

Headers
string

Your tenant identifier (the subdomain of your Quantum Works URL), passed via the X-Tenant header.

Responses

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