curl --request PUT \
--url https://{server-url}/chat/updatePrivacySettings/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"privacySettings": {
"readreceipts": "all",
"profile": "all",
"status": "all",
"online": "all",
"last": "all",
"groupadd": "all"
}
}'
Update privacy settings
curl --request PUT \
--url https://{server-url}/chat/updatePrivacySettings/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"privacySettings": {
"readreceipts": "all",
"profile": "all",
"status": "all",
"online": "all",
"last": "all",
"groupadd": "all"
}
}'
Your authorization key header
ID of the instance to connect