POST
/
v1
/
teams
/
{teamId}
/
routing
Create a team routing rule
curl --request POST \
  --url https://platform.thena.ai/v1/teams/{teamId}/routing \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "description": "<string>",
  "evaluationOrder": 123,
  "name": "<string>",
  "resultTeamId": "<string>",
  "andRules": [
    "<string>"
  ],
  "orRules": [
    "<string>"
  ]
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "teamId": "<string>",
    "evaluationOrder": 123,
    "resultTeamId": "<string>",
    "fallbackTeamId": "<string>",
    "andRules": [
      "<string>"
    ],
    "orRules": [
      "<string>"
    ],
    "createdBy": "<string>",
    "createdAt": "<string>",
    "createdById": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Enter your API key

Path Parameters

teamId
string
required

Body

application/json
name
string
required

The name of the routing rule group

resultTeamId
string
required

The result team ID of the routing rule group

description
string

The description of the routing rule group

evaluationOrder
number

The evaluation order of the routing rule group

andRules
string[]

The rules of the routing rule group

orRules
string[]

The rules of the routing rule group

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 routing rule operations