Add client contact method

View as MarkdownOpen in Claude
Stores a Client's method, **replacing only the existing method of the same channel** (the other channel, if any, is untouched). Answers **201** with the resource, no `Location` header (a method has no standalone show route). **Body** (JSON): - `channel` (string, required) - `email`|`phone` for a Client; a Client never holds `whatsapp`. - `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

client_idstringRequired

Request

This endpoint expects an object.
channelstringOptional
valuestringOptional

Response

201 - Method stored

dataobjectOptional
jsonapiobjectOptional

Errors

422
Unprocessable Entity Error