API reference
Platform
- Search
- Users
- Teams
- Tickets
- Tags
- Ticket tags
- Accounts
- Forms
- Comments
- Emoji actions
- Custom object fields
- Custom objects
- Object records
- Views
- Views types
- Draft tickets
- Storage
- Reactions
Workflows
- Workflows
Apps platform
- App creation
- App installation
- App uninstallation
- App reinstallation
- Incoming webhook
Users
Create your time off!
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
Enter your API key
Body
application/json
Response
201
application/json
Operation successful
The response is of type object
.
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>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.