Create a worked hours code

Creates a new worked 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 visible to calculations immediately. It is not added to any user profile's
code visibility; grant that in the app if employees need to select 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 worked hours code.

Payload to create a worked 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: #10b981.

boolean | null

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

boolean | null

Whether hours on this code are paid. Create default: true.

boolean | null

Whether hours count as working time for WTD limits. Create default: false.

boolean | null

Whether this is a standard (non-premium) hours code. Create default: false.

boolean | null

Whether hours count toward the flexi balance. 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