Ze da API icon

Ze da API

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

Actions137

Privacy → Update Profile Photo

AI-generated

Summary

Update the profile photo visibility setting for the current user.

Inputs

  • value (required) — Who can see your profile photo; options: all, contacts, contact_blacklist, none
  • requestOptions — Configuration for request settings such as batching, batch interval, etc.
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use, e.g. http://username:password@myproxy:3128
  • timeout — Time in ms to wait for the server to send response headers before aborting the request

Output shape

a JSON response indicating success or failure of the profile photo update

Typically returns a success status; on error returns an error object; no pagination of results

Examples

Example 1: Set profile photo visibility to contacts only

value: contacts

Example 2: Upload a new profile photo through a corporate proxy with extended timeout

proxy: http://myproxy:3128; timeout: 15000; value: all

Example 3: Update profile photo while ignoring SSL certificate validation

allowUnauthorizedCerts: true; value: none

Links

Discussion