Skip to main content
PATCH
/
absences
/
{id}
Update absence
curl --request PATCH \
  --url http:localhost:3000/v2/absences/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-API-Key: <api-key>' \
  --data '{
  "dtStart": "2023-11-07T05:31:56Z",
  "dtEnd": "2023-11-07T05:31:56Z",
  "daysAbsent": 123,
  "type": 123,
  "desc": "<string>",
  "payTypeAbsenceId": "<string>",
  "calculationType": "<string>",
  "imageIds": [
    "<string>"
  ]
}'
{
  "updated": true
}

Authorizations

x-API-Key
string
header
required

Path Parameters

id
string<objectid>
required

Absence ID to update

Body

application/json

Absence update data

dtStart
string<date-time> | null

Start date/time of the absence (UTC timestamp)

dtEnd
string<date-time> | null

End date/time of the absence (UTC timestamp)

daysAbsent
number | null

Number of days absent

type
integer | null

Absence type

desc
string | null

Description or comment for the absence

payTypeAbsenceId
string<objectid> | null

Pay type absence ID

calculationType
string | null

Calculation type

imageIds
string[] | null

Image IDs associated with the absence

Response

Absence updated successfully

updated
boolean
Example:

true