Skip to main content
POST
Create
A stable version of this route is available: 26.06.25.
This page is a preview of upcoming changes to this route: they may change without notice until they become part of a new stable version.

Body

application/json
resource_id
string<snowflake>
required
Example:

"872815618512410358"

absence_type_id
string<snowflake>
required
Example:

"872815618512410358"

when
string
required

A single date (YYYY-MM-DD), a date interval (YYYY-MM-DD/YYYY-MM-DD), or an RRULE string. When using a date interval or RRULE, options.allow_partial is required.

Example:

"RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;DTSTART=20260101T120000;UNTIL=20260105T120000"

percentage
number<percentage>
Example:

100

time_ranges
string<local-time-interval>[]
options
object
repetition_id
integer | null
remark
string | null

Response

201 - application/json

Absence(s) created. When options.allow_partial is true, some absences might not be created due to lock dates or permissions.

Result of creating absence(s).

created
object
required
repetition_id
integer | null
required
created_count
integer
required
failed_count
integer
required
failed
string[]
required