E035: Add contact method
POST /api/contacts/:id/methods
Attaches an email or phone to a contact, with an optional label. Triggered from a contact detail panel.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Request
{ "type": "email", "value": "jane@example.com", "isPrimary": true }
type is "email" or "phone". Setting isPrimary: true demotes any existing primary of the same type.
Response — 201 Created
{ "id": "uuid", "contactId": "uuid", "methodType": "email", "value": "jane@example.com", "isPrimary": true }
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such contact. |
| 422 | validation_failed | Type / value shape invalid. |
Workflow
Calls W035 Add contact method.