Set a contact's contact method
Sets an email or a WhatsApp number on a contact. It replaces whichever method the contact already has, whatever its channel, because a contact keeps at most one.
Body
channel(emailorwhatsapp, required): a contact never holds a conventionalphone.value(string, required): at most 255 characters, a valid email address foremailand a valid phone number forwhatsapp.
Errors
- 422:
channelis notemailorwhatsapp, 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
contact_id
Request
This endpoint expects an object.
channel
value
Response
201 - Method stored
data
jsonapi
Errors
422
Unprocessable Entity Error
