Add contact contact method
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_id
Request
This endpoint expects an object.
channel
value
Response
201 - Method stored
data
jsonapi
Errors
422
Unprocessable Entity Error

