Introduction
- API Reference
- Platform
- Platform APIs
- Login & sign up
- Organizations
- SLA duration
- Users
- User management
- Working hours & availability
- Time off management
- Skills management
- Teams
- Tickets
- Comments & reactions
- Custom fields
- Forms
- Draft tickets
- Accounts & contacts
- Custom objects
- Workflows
- SLA
- Storage
- Notifications
Update your working hours!
curl --request PATCH \
--url https://platform.thena.ai/v1/users/business-hours \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-org-id: <api-key>' \
--data '{
"timezone": "<string>",
"routingRespectsTimezone": true,
"routingRespectsUserCapacity": true,
"fallbackSubTeam": "<string>",
"holidays": [
"25-12",
"25-12-2024"
],
"routingRespectsUserTimezone": true,
"routingRespectsUserAvailability": 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 JWT bearer token
Enter organization ID
Body
The timezone of the team
Whether the routing rules respect the timezone for the teams
Whether the routing rules respect the user capacity for the teams
The fallback sub team of the team
The dates of the team's holidays
["25-12", "25-12-2024"]
Whether the routing rules respect the user timezone for the teams
Whether the routing rules respect the user availability for the teams
The user routing strategy for the team
manual
, round_robin
Whether the team uses common daily config
The common slots for the team
[{ "start": "09:00", "end": "17:00" }]
The business hours of the team
The business hours for Monday
Whether the business day is active
The business hours for Tuesday
Whether the business day is active
The business hours for Wednesday
Whether the business day is active
The business hours for Thursday
Whether the business day is active
The business hours for Friday
Whether the business day is active
The business hours for Saturday
Whether the business day is active
The business hours for Sunday
Whether the business day is active
{
"monday": {
"isActive": true,
"slots": [{ "start": "09:00", "end": "17:00" }]
}
}
Response
The status of the response
The message of the response
The timestamp of the response
The response for create/update/delete user configurations
The team timezone
Unique identifier for the user
The user's daily business hours config
The business hours for Monday
Whether the business day is active
The business hours for Tuesday
Whether the business day is active
The business hours for Wednesday
Whether the business day is active
The business hours for Thursday
Whether the business day is active
The business hours for Friday
Whether the business day is active
The business hours for Saturday
Whether the business day is active
The business hours for Sunday
Whether the business day is active
Whether the common daily config is enabled
The created date of the user configuration
The updated date of the user configuration
curl --request PATCH \
--url https://platform.thena.ai/v1/users/business-hours \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-org-id: <api-key>' \
--data '{
"timezone": "<string>",
"routingRespectsTimezone": true,
"routingRespectsUserCapacity": true,
"fallbackSubTeam": "<string>",
"holidays": [
"25-12",
"25-12-2024"
],
"routingRespectsUserTimezone": true,
"routingRespectsUserAvailability": 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>"
}
}