W035: Add contact method
Attaches an email or phone to a contact, with an optional label. Triggered from a contact detail panel.
Steps
-
Load the contact. Call
Contacts.getContactById. -
Insert the method. Call
Contacts.addMethod(contactId, { type, value, label }).typeis'email'or'phone'.
Returns
The new contact method.
Business rules
- Format validation lives at L4. The workflow trusts the shape; the request boundary already enforced it.
Errors
NotFoundError. The contact was not found.