Reorder Chat Groups
curl --request PATCH \
--url https://api.example.com/api/v1/chat-groups/reorder \
--header 'Content-Type: application/json' \
--data '
{
"group_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.example.com/api/v1/chat-groups/reorder"
payload = { "group_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({group_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api.example.com/api/v1/chat-groups/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"groups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sort_order": 123,
"created_at": "2023-11-07T05:31:56Z"
}
],
"total": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}chat-groups
Reorder Chat Groups
PATCH
/
api
/
v1
/
chat-groups
/
reorder
Reorder Chat Groups
curl --request PATCH \
--url https://api.example.com/api/v1/chat-groups/reorder \
--header 'Content-Type: application/json' \
--data '
{
"group_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.example.com/api/v1/chat-groups/reorder"
payload = { "group_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({group_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://api.example.com/api/v1/chat-groups/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"groups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sort_order": 123,
"created_at": "2023-11-07T05:31:56Z"
}
],
"total": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}