Skip to navigation

Set a client's contact method

View as MarkdownOpen in Claude

Sets an email or a phone on a client. It replaces the client’s existing method on the same channel and leaves the other channel untouched, so one call is enough to change an email.

Body

  • channel (email or phone, required): a client never holds whatsapp.
  • value (string, required): at most 255 characters, a valid email address for email and a valid phone number for phone.

Errors

  • 422: channel is not email or phone, or value is not valid for the channel.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Path parameters

client_idstringRequired

Request

This endpoint expects an object.
channelstringOptional
valuestringOptional

Response

201 - Method stored

dataobjectOptional
jsonapiobjectOptional

Errors

422
Unprocessable Entity Error