latestOpenAPI 3.1.02026-08-22695252.1 KB

ef777d51e6f2

Allowance Management

Update an allowance type

Updates the name and the booking limit of an allowance type. Omitted fields keep their current value. The unit (days or minutes) cannot be changed once the type exists.

patch/allowance-types/{id}

Path parameters

idstring uuid required

Request body

namestring
ignore_allowance_limitboolean
locale'en' | 'de' | 'fr' | 'hu' | 'it' | 'pl' | 'pt' | 'ru' | 'es' | 'tr' | 'uk'

Returns translatable names in this language, falling back to the stored name where no translation exists. Omit it to keep the response unchanged.

Response

Successful response

idstring required
namestring required

Translated into locale when one is given, otherwise into the API key owner's language, falling back to the stored name where no translation exists.

default_namestring required

The stored name, without any translation applied.

allowance_unit'days' | 'hours' required

Whether this type is counted in days or in minutes.

ignore_allowance_limitboolean required

When true, members may book more than their balance and go negative.

default_rule_idstring nullable required

The rule a new member of this workspace is put on. A department default rule takes precedence over it.

workspace_idstring required
createdAtstring required
updatedAtstring required