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>"
]'import requests
url = "https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder"
payload = ["<string>"]
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify(['<string>'])
};
fetch('https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder"
payload := strings.NewReader("[\n \"<string>\"\n]")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n \"<string>\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n \"<string>\"\n]"
response = http.request(request)
puts response.read_body{
"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"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Forbidden",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "Team not found",
"error": "Not Found"
}{
"statusCode": 500,
"message": "Internal Server Error",
"error": "Internal Server Error"
}{
"statusCode": 503,
"message": "Service Unavailable",
"error": "Service Unavailable"
}CSAT
Reorder the priority of CSAT rules for a team
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>"
]'import requests
url = "https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder"
payload = ["<string>"]
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify(['<string>'])
};
fetch('https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder"
payload := strings.NewReader("[\n \"<string>\"\n]")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n \"<string>\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.thena.ai/v1/csat/team/{teamUid}/rules/reorder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n \"<string>\"\n]"
response = http.request(request)
puts response.read_body{
"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"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Forbidden",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "Team not found",
"error": "Not Found"
}{
"statusCode": 500,
"message": "Internal Server Error",
"error": "Internal Server Error"
}{
"statusCode": 503,
"message": "Service Unavailable",
"error": "Service Unavailable"
}⌘I