POST
/
v1
/
teams
/
{teamId}
/
routing
curl --request POST \
  --url https://platform.thena.ai/v1/teams/{teamId}/routing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <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

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

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

201
application/json
Operation successful
status
boolean
default:true
required

The status of the response

message
string
default:Success
required

The message of the response

timestamp
string
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