curl --request POST \
--url https://api.avazal.com/v1/conversations.update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "<string>",
"name": "<string>",
"topic": "<string>",
"purpose": "<string>",
"archived": true,
"joined": true,
"open": false,
"read": true,
"addMembers": [
"<string>"
],
"removeMembers": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
topic: '<string>',
purpose: '<string>',
archived: true,
joined: true,
open: false,
read: true,
addMembers: ['<string>'],
removeMembers: ['<string>']
})
};
fetch('https://api.avazal.com/v1/conversations.update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.avazal.com/v1/conversations.update"
payload = {
"id": "<string>",
"name": "<string>",
"topic": "<string>",
"purpose": "<string>",
"archived": True,
"joined": True,
"open": False,
"read": True,
"addMembers": ["<string>"],
"removeMembers": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"url": "<string>",
"source": "avazal",
"title": "<string>",
"kind": "channel",
"archived": true,
"lastMessageAt": "<string>",
"unread": 1,
"mentions": 1,
"provider": {
"source": "slack",
"conversation": {
"id": "<string>",
"workspaceId": "<string>",
"externalId": "<string>",
"kind": "channel",
"name": "<string>",
"topic": "<string>",
"purpose": "<string>",
"dmMemberId": "<string>",
"shared": "none",
"archived": true,
"readOnly": true,
"postingRestricted": true,
"threadsRestricted": true,
"tabs": [
{
"kind": "canvas",
"label": "<string>",
"fileId": "<string>"
}
],
"huddle": {
"startedAt": "<string>",
"memberIds": [
"<string>"
]
},
"latestMessageAt": "<string>",
"createdBy": "<string>",
"createdAt": "<string>",
"preview": true
},
"memberCount": 1,
"joined": true
}
}{
"issues": [
{
"_tag": "Pointer",
"path": [
"<string>"
],
"message": "<string>"
}
],
"message": "<string>",
"_tag": "HttpApiDecodeError"
}{
"message": "<string>",
"_tag": "KeyRequired"
}{
"_tag": "AccessPending",
"message": "<string>"
}{
"action": {
"tool": "<string>",
"input": {}
},
"message": "<string>",
"_tag": "AskFirst"
}{
"message": "<string>",
"_tag": "Unsupported"
}Update Conversation
Change a conversation
curl --request POST \
--url https://api.avazal.com/v1/conversations.update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "<string>",
"name": "<string>",
"topic": "<string>",
"purpose": "<string>",
"archived": true,
"joined": true,
"open": false,
"read": true,
"addMembers": [
"<string>"
],
"removeMembers": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
name: '<string>',
topic: '<string>',
purpose: '<string>',
archived: true,
joined: true,
open: false,
read: true,
addMembers: ['<string>'],
removeMembers: ['<string>']
})
};
fetch('https://api.avazal.com/v1/conversations.update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.avazal.com/v1/conversations.update"
payload = {
"id": "<string>",
"name": "<string>",
"topic": "<string>",
"purpose": "<string>",
"archived": True,
"joined": True,
"open": False,
"read": True,
"addMembers": ["<string>"],
"removeMembers": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"url": "<string>",
"source": "avazal",
"title": "<string>",
"kind": "channel",
"archived": true,
"lastMessageAt": "<string>",
"unread": 1,
"mentions": 1,
"provider": {
"source": "slack",
"conversation": {
"id": "<string>",
"workspaceId": "<string>",
"externalId": "<string>",
"kind": "channel",
"name": "<string>",
"topic": "<string>",
"purpose": "<string>",
"dmMemberId": "<string>",
"shared": "none",
"archived": true,
"readOnly": true,
"postingRestricted": true,
"threadsRestricted": true,
"tabs": [
{
"kind": "canvas",
"label": "<string>",
"fileId": "<string>"
}
],
"huddle": {
"startedAt": "<string>",
"memberIds": [
"<string>"
]
},
"latestMessageAt": "<string>",
"createdBy": "<string>",
"createdAt": "<string>",
"preview": true
},
"memberCount": 1,
"joined": true
}
}{
"issues": [
{
"_tag": "Pointer",
"path": [
"<string>"
],
"message": "<string>"
}
],
"message": "<string>",
"_tag": "HttpApiDecodeError"
}{
"message": "<string>",
"_tag": "KeyRequired"
}{
"_tag": "AccessPending",
"message": "<string>"
}{
"action": {
"tool": "<string>",
"input": {}
},
"message": "<string>",
"_tag": "AskFirst"
}{
"message": "<string>",
"_tag": "Unsupported"
}messages:write scope.Authorizations
Body
Slack member ids (chws_…@U…) from people_list.
1An id from another result: chcv_… (channel or DM), chcv_…@ (message), chcv_…/ (Slack List or canvas), chcv_…// (list item), mthr_ (email thread), mmsg_, mdrf_, mcmp_, mout_, att_, macc_, doc_, drev_, cevt_, cnt_, trg_, arun_, aart_, aask_, blnk_, a Linear issue such as ENG-123, or linear:team:, linear:view:, linear:mine.
Slack member ids (chws_…@U…) from people_list.
1An id from another result: chcv_… (channel or DM), chcv_…@ (message), chcv_…/ (Slack List or canvas), chcv_…// (list item), mthr_ (email thread), mmsg_, mdrf_, mcmp_, mout_, att_, macc_, doc_, drev_, cevt_, cnt_, trg_, arun_, aart_, aask_, blnk_, a Linear issue such as ENG-123, or linear:team:, linear:view:, linear:mine.
Response
A Slack channel or DM, or an email thread.
A Slack channel or DM, or an email thread.