Add contact contact method

View as MarkdownOpen in Claude
Stores the Contact's method, **replacing whichever method it already has, regardless of its channel** (a Contact keeps at most one method total). Answers **201** with the resource, no `Location` header (a method has no standalone show route). **Body** (JSON): - `channel` (string, required) - `email`|`whatsapp` for a Contact; a Contact never holds a conventional `phone`. - `value` (string, required, max 255) - a valid email address when `channel` is `email`, a valid phone number otherwise. Requires a full-access token.

Authentication

AuthorizationBearer

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

Path parameters

contact_idstringRequired

Request

This endpoint expects an object.
channelstringOptional
valuestringOptional

Response

201 - Method stored

dataobjectOptional
jsonapiobjectOptional

Errors

422
Unprocessable Entity Error