orvachat

Contacts

Update Privacy Setting

POST/api/v1/user/privacy

Change one privacy setting.

Parameters

  • NamestringRequired

    Which setting: last, online, profile, status, readreceipts, groupadd or calladd.

  • ValuestringRequired

    Who can see it, e.g. all, contacts or none.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/user/privacy" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "Name": "last",
  "Value": "contacts"
}'

Response Example

200 OK
{
  "code": 200,
  "data": {
    "LastSeen": "contacts"
  },
  "success": true
}