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
Update your working hours!
PATCH
/
v1
/
users
/
business-hours
curl --request PATCH \
--url https://platform.thena.ai/v1/users/business-hours \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"timezone": "<string>",
"routingRespectsTimezone": true,
"routingRespectsUserCapacity": true,
"fallbackSubTeam": "<string>",
"holidays": [
"25-12",
"25-12-2024"
],
"routingRespectsUserTimezone": true,
"routingRespectsUserAvailability": true,
"routingRespectsUserBusinessHours": true,
"userRoutingStrategy": "manual",
"commonDailyConfig": true,
"commonSlots": [
{
"start": "09:00",
"end": "17:00"
}
],
"dailyConfig": {
"monday": {
"isActive": true,
"slots": [
{
"start": "09:00",
"end": "17:00"
}
]
}
}
}'
{
"status": true,
"message": "Success",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"timezone": "<string>",
"userId": "<string>",
"dailyConfig": {
"monday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"tuesday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"wednesday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"thursday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"friday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"saturday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"sunday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
}
},
"commonDailyConfig": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
Authorizations
Enter your API key
Body
application/json
Response
200
application/json
Operation successful
The response is of type object
.
curl --request PATCH \
--url https://platform.thena.ai/v1/users/business-hours \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"timezone": "<string>",
"routingRespectsTimezone": true,
"routingRespectsUserCapacity": true,
"fallbackSubTeam": "<string>",
"holidays": [
"25-12",
"25-12-2024"
],
"routingRespectsUserTimezone": true,
"routingRespectsUserAvailability": true,
"routingRespectsUserBusinessHours": true,
"userRoutingStrategy": "manual",
"commonDailyConfig": true,
"commonSlots": [
{
"start": "09:00",
"end": "17:00"
}
],
"dailyConfig": {
"monday": {
"isActive": true,
"slots": [
{
"start": "09:00",
"end": "17:00"
}
]
}
}
}'
{
"status": true,
"message": "Success",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"timezone": "<string>",
"userId": "<string>",
"dailyConfig": {
"monday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"tuesday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"wednesday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"thursday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"friday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"saturday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
},
"sunday": {
"isActive": true,
"slots": [
{
"start": "10:00",
"end": "18:00"
}
]
}
},
"commonDailyConfig": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.