Channels
Update privacy settings for a channel
PUT
/
v1
/
channels
/
{channelID}
/
privacy
Update privacy settings for a channel
curl --request PUT \
--url https://api.wazapin.com/v1/channels/{channelID}/privacy \
--header 'Content-Type: application/json' \
--data '
{
"call_add": "<string>",
"group_add": "<string>",
"last_seen": "<string>",
"online": "<string>",
"profile_photo": "<string>",
"read_receipts": true,
"status": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
call_add: '<string>',
group_add: '<string>',
last_seen: '<string>',
online: '<string>',
profile_photo: '<string>',
read_receipts: true,
status: '<string>'
})
};
fetch('https://api.wazapin.com/v1/channels/{channelID}/privacy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/channels/{channelID}/privacy"
payload = {
"call_add": "<string>",
"group_add": "<string>",
"last_seen": "<string>",
"online": "<string>",
"profile_photo": "<string>",
"read_receipts": True,
"status": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Update privacy settings for a channel
curl --request PUT \
--url https://api.wazapin.com/v1/channels/{channelID}/privacy \
--header 'Content-Type: application/json' \
--data '
{
"call_add": "<string>",
"group_add": "<string>",
"last_seen": "<string>",
"online": "<string>",
"profile_photo": "<string>",
"read_receipts": true,
"status": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
call_add: '<string>',
group_add: '<string>',
last_seen: '<string>',
online: '<string>',
profile_photo: '<string>',
read_receipts: true,
status: '<string>'
})
};
fetch('https://api.wazapin.com/v1/channels/{channelID}/privacy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/channels/{channelID}/privacy"
payload = {
"call_add": "<string>",
"group_add": "<string>",
"last_seen": "<string>",
"online": "<string>",
"profile_photo": "<string>",
"read_receipts": True,
"status": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}