Skip to main content
Version: v1.0.0(int)

W035: Add contact method

Attaches an email or phone to a contact, with an optional label. Triggered from a contact detail panel.

Steps

  1. Load the contact. Call Contacts.getContactById.

  2. Insert the method. Call Contacts.addMethod(contactId, { type, value, label }). type is '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.