WA-AKG icon

WA-AKG

Interact with WA-AKG WhatsApp Gateway API

User → Update

AI-generated

Summary

Update a user's metadata

Inputs

  • userId (required) — Internal ID of the user to update, e.g. "usr_123xyz"
  • userData — Array of key-value pairs defining user metadata; each item has 'name' and 'value' fields

Output shape

a single updated user object

The operation returns the API response representing the updated user; no pagination or error envelope is wrapped.

Examples

Example 1: Update user metadata with a single property

{"resource":"User","operation":"Update","userId":"usr_123xyz","userData":[{"name":"role","value":"admin"}]}

Example 2: Update user with multiple metadata entries

{"resource":"User","operation":"Update","userId":"usr_98765","userData":[{"name":"department","value":"HR"},{"name":"status","value":"active"}]}

Example 3: Update user with no metadata changes

{"resource":"User","operation":"Update","userId":"usr_55555","userData":[]}

Links

Discussion