Skip to main content
POST
/
api
/
schedule
/
absences.update
Update absence(s)
curl --request POST \
  --url https://api.example.com/api/schedule/absences.update \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "872815618512410358",
  "options": {
    "group_action": "single",
    "allow_partial": true
  },
  "absence_type_id": "872815618512410358",
  "percentage": 100,
  "time_ranges": [
    "12:34:56/PT2H"
  ],
  "repetition_id": 123,
  "remark": "<string>"
}
'
{
  "updated_count": 123,
  "updated": {},
  "failed_count": 123,
  "failed": {}
}

Body

application/json
id
string<snowflake>
required
Example:

"872815618512410358"

options
object
required
absence_type_id
string<snowflake>
Example:

"872815618512410358"

percentage
number<percentage>
Example:

100

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

Response

200 - application/json

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

Result of updating absence(s).

updated_count
integer
required
updated
object
required
failed_count
integer
required
failed
object
required