Set a client's contact method
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(emailorphone, required): a client never holdswhatsapp.value(string, required): at most 255 characters, a valid email address foremailand a valid phone number forphone.
Errors
- 422:
channelis notemailorphone, orvalueis 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_id
Request
This endpoint expects an object.
channel
value
Response
201 - Method stored
data
jsonapi
Errors
422
Unprocessable Entity Error
