PATCH
/
v1
/
teams
/
{teamId}
/
configurations
Update team configurations
curl --request PATCH \
  --url https://platform.thena.ai/v1/teams/{teamId}/configurations \
  --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>",
    "teamId": "<string>",
    "fallbackSubTeam": "<string>",
    "holidays": [
      "<string>"
    ],
    "routingRespectsTimezone": true,
    "routingRespectsUserTimezone": true,
    "routingRespectsUserAvailability": true,
    "routingRespectsUserBusinessHours": true,
    "userRoutingStrategy": "<string>",
    "commonDailyConfig": true,
    "dailyConfig": {
      "monday": {
        "isActive": true,
        "slots": [
          {
            "start": "<any>",
            "end": "<any>"
          }
        ]
      },
      "tuesday": {
        "isActive": true,
        "slots": [
          {
            "start": "<any>",
            "end": "<any>"
          }
        ]
      },
      "wednesday": {
        "isActive": true,
        "slots": [
          {
            "start": "<any>",
            "end": "<any>"
          }
        ]
      },
      "thursday": {
        "isActive": true,
        "slots": [
          {
            "start": "<any>",
            "end": "<any>"
          }
        ]
      },
      "friday": {
        "isActive": true,
        "slots": [
          {
            "start": "<any>",
            "end": "<any>"
          }
        ]
      },
      "saturday": {
        "isActive": true,
        "slots": [
          {
            "start": "<any>",
            "end": "<any>"
          }
        ]
      },
      "sunday": {
        "isActive": true,
        "slots": [
          {
            "start": "<any>",
            "end": "<any>"
          }
        ]
      }
    },
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Enter your API key

Path Parameters

teamId
string
required

Body

application/json
timezone
string

The timezone of the team

routingRespectsTimezone
boolean

Whether the routing rules respect the timezone for the teams

routingRespectsUserCapacity
boolean

Whether the routing rules respect the user capacity for the teams

fallbackSubTeam
string

The fallback sub team of the team

holidays
any[][]

The dates of the team's holidays

Example:
["25-12", "25-12-2024"]
routingRespectsUserTimezone
boolean

Whether the routing rules respect the user timezone for the teams

routingRespectsUserAvailability
boolean

Whether the routing rules respect the user availability for the teams

routingRespectsUserBusinessHours
boolean

Whether the routing rules respect the user business hours for the teams

userRoutingStrategy
enum<string>

The user routing strategy for the team

Available options:
manual,
round_robin
commonDailyConfig
boolean

Whether the team uses common daily config

commonSlots
string[]

The common slots for the team

Example:
[{ "start": "09:00", "end": "17:00" }]
dailyConfig
object

The business hours of the team

Example:
{
"monday": {
"isActive": true,
"slots": [{ "start": "09:00", "end": "17:00" }]
}
}

Response

Operation successful

status
boolean
default:true
required

The status of the response

message
string
default:Success
required

The message of the response

timestamp
string<date-time>
default:2024-01-01T00:00:00.000Z
required

The timestamp of the response

data
object
required

The response for create/update/delete team configurations