NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Contacts → Update Contact

AI-generated

Summary

Updates a NetSapiens contact by setting its associated domains and user, optionally refreshing dropdown caches.

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • domain (required) — Domain identifier to associate with the contact
  • user (required) — User identifier to associate with the contact
  • contact_id (required) — The unique identifier of the contact to update
  • body (required) — JSON payload containing fields to update for the contact

Output shape

a single contact object

The response body contains the updated contact record; success is indicated by a 200 status and no error envelope.

Examples

Example 1: Add example.com domain to user 1001 for contact 12345

{"contact_id":"12345","user":{"mode":"list","value":"1001"},"domain":{"mode":"list","value":"example.com"},"body":"{}"}

Example 2: Refresh dropdown options before updating contact 987

{"contact_id":"987","refreshOptions":true,"domain":{"mode":"list","value":"test.com"},"user":{"mode":"list","value":"567"},"body":"{}"}

Links

Discussion