Skip to main content
POST
/
api
/
schedule
/
absences.create
Create absence
curl --request POST \
  --url https://api.example.com/api/schedule/absences.create \
  --header 'Content-Type: application/json' \
  --data '
{
  "resource_id": "872815618512410358",
  "date": "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;...",
  "absence_type_id": "872815618512410358",
  "percentage": 100,
  "time_ranges": [
    "12:34:56/PT2H"
  ],
  "options": {
    "schedule_on_bank_holidays": true
  },
  "remark": "<string>"
}
'

Body

application/json
resource_id
string<snowflake>
required
Example:

"872815618512410358"

date
string
required
Example:

"RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;..."

absence_type_id
string<snowflake>
required
Example:

"872815618512410358"

percentage
number<percentage> | null
Example:

100

time_ranges
string<local-time-interval>[] | null
options
object
remark
string | null
Maximum string length: 65535

Response

default - undefined