Update Participants
curl --request POST \
--url https://api.example.com/api/v1/groups/participants \
--header 'Content-Type: application/json' \
--data '
{
"session_name": "<string>",
"group_jid": "<string>",
"action": "<string>",
"participants": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v1/groups/participants"
payload = {
"session_name": "<string>",
"group_jid": "<string>",
"action": "<string>",
"participants": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
session_name: '<string>',
group_jid: '<string>',
action: '<string>',
participants: ['<string>']
})
};
fetch('https://api.example.com/api/v1/groups/participants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"details": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}groups
Update Participants
Update group participants (add, remove, promote, demote).
POST
/
api
/
v1
/
groups
/
participants
Update Participants
curl --request POST \
--url https://api.example.com/api/v1/groups/participants \
--header 'Content-Type: application/json' \
--data '
{
"session_name": "<string>",
"group_jid": "<string>",
"action": "<string>",
"participants": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v1/groups/participants"
payload = {
"session_name": "<string>",
"group_jid": "<string>",
"action": "<string>",
"participants": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
session_name: '<string>',
group_jid: '<string>',
action: '<string>',
participants: ['<string>']
})
};
fetch('https://api.example.com/api/v1/groups/participants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"details": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Body
application/json
Request to update group participants.