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

The body is of type object.

Response

200
application/json

Absence updated successfully

The response is of type object.