Ze da API icon

Ze da API

WhatsApp API powered by Ze da API - Send messages, manage groups, contacts and more

Actions137

Privacy → Update Online

AI-generated

Summary

Update the online privacy visibility setting for a contact or group

Inputs

  • value (required) — Online visibility setting, either 'all' or 'match_last_seen'
  • requestOptions — Options for batching, batch interval, and other HTTP configuration
  • allowUnauthorizedCerts — Whether to ignore SSL certificate validation
  • proxy — HTTP proxy URL, optionally with credentials
  • timeout — Request timeout in milliseconds

Output shape

a single privacy resource object representing the updated setting

The response includes the updated fields; on error an envelope with 'id' and 'code' may be returned

Examples

Example 1: Set online visibility to 'match_last_seen'

value=match_last_seen

Example 2: Batch update with 50 items per batch and 1000 ms interval

value=all&requestOptions.batch.batchSize=50&requestOptions.batch.batchInterval=1000

Example 3: Use a proxy and custom timeout

proxy=http://myproxy:3128&timeout=15000

Links

Discussion