Skip to main content
POST
List
This endpoint is in preview: it may change without notice until it becomes part of a stable version.

Body

application/json
ids
string<snowflake>[]
enabled
boolean
validity_date_range
string<local-date-interval>

Keeps the indemnities applying over at least one day of the range.

Example:

"2019-11-11/2019-12-12"

Response

200 - application/json
id
string<snowflake>
required
Example:

"872815618512410358"

label
object
required
Example:
description
object | null
required
Example:
enabled
boolean
required
validity_date_range
string<local-date-interval>
required

The period the indemnity applies over, an open end being written - (e.g. 2025-01-01/-).

Example:

"2019-11-11/2019-12-12"

team_ids
string<snowflake>[] | null
required

The teams the indemnity is restricted to, among those the caller can view the indemnities of. Null when it applies to every team.

exported
boolean
required

Included in the payroll export.

output_format
enum<string>
required

The unit of the indemnity values: the one of its counter, or hours for an indemnity based on a calculation that sets none.

Available options:
days,
hours,
units
Example:

"days"