POST
/
v1
/
users
/
time-off
curl --request POST \
  --url https://platform.thena.ai/v1/users/time-off \
  --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>"
  }
}

Authorizations

x-api-key
string
header
required

Enter your API key

Body

application/json

Response

201
application/json

Operation successful

The response is of type object.