PATCH
/
v1
/
csat
/
team
/
{teamUid}
/
rules
/
reorder
Reorder the priority of CSAT rules for a team
curl --request PATCH \
  --url https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '[
  "<string>"
]'
{
  "data": {
    "ok": true,
    "data": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "team": {
        "id": "12345678910"
      },
      "organization": {
        "id": "98765432110"
      },
      "isEnabled": true,
      "cooldownPeriodDays": 14,
      "userCooldownPeriodDays": 30,
      "emailConfigId": "email-config-123",
      "closedStatusIds": [
        "1",
        "2",
        "3"
      ],
      "rules": [
        {
          "id": "rule-456",
          "name": "Urgent Priority Survey",
          "description": "Survey for urgent tickets",
          "isActive": true,
          "priority": 2,
          "createdAt": "2023-08-01T12:00:00Z",
          "updatedAt": "2023-08-02T14:30:00Z"
        },
        {
          "id": "rule-123",
          "name": "High Priority Survey",
          "description": "Survey for high priority tickets",
          "isActive": true,
          "priority": 1,
          "createdAt": "2023-08-01T12:00:00Z",
          "updatedAt": "2023-08-02T14:30:00Z"
        }
      ],
      "createdAt": "2023-01-01T00:00:00.000Z",
      "updatedAt": "2023-01-01T00:00:00.000Z"
    }
  },
  "status": true,
  "message": "CSAT rules reordered successfully",
  "timestamp": "2025-07-15T11:38:09.817Z"
}

Authorizations

x-api-key
string
header
required

Enter your API key

Path Parameters

teamUid
string
required

Body

application/json · string[]

The body is of type string[].

Response

200
application/json

Success - CSAT rules reordered successfully

The response is of type any.