curl --request PATCH \
--url https://platform.thena.ai/v1/users/time-off/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"startDate": "2024-01-01T00:00:00.000Z",
"endDate": "2024-01-02T23:59:59.999Z",
"description": "I'\''m going to be on vacation",
"type": "VACATION"
}'
{
"status": true,
"message": "Success",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"id": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"description": "<string>",
"type": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
curl --request PATCH \
--url https://platform.thena.ai/v1/users/time-off/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"startDate": "2024-01-01T00:00:00.000Z",
"endDate": "2024-01-02T23:59:59.999Z",
"description": "I'\''m going to be on vacation",
"type": "VACATION"
}'
{
"status": true,
"message": "Success",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"id": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"description": "<string>",
"type": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
Enter your API key
Operation successful
The response is of type object
.