cURL
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 }
Update an existing absence record with new data. Only provided fields will be updated.
Absence ID to update
Absence update data
The body is of type object.
object
Absence updated successfully
The response is of type object.
Was this page helpful?