Replace a contact

PUT/api/v1/mailbox/address-book/contacts/{card_id}
Requires amailbox token— it acts as one mailbox holder, not as the organization.

etag is the copy the caller last read.

Without it, two devices editing the same contact end with one silently overwriting the other. With it the second write is refused and the client can re-read -- the same contract the calendar's event update uses.

Parameters

NameInTypeDescription
card_idrequiredpathstring
etagquerystring
bookquerystring

Request body

Request

PUT/api/v1/mailbox/address-book/contacts/{card_id}
curl -X PUT 'https://app.mailyte.com/api/v1/mailbox/address-book/contacts/01JBT8XQ2M9WYC3K4F6R7S8T9V' \
  -H 'Authorization: Bearer MAILBOX_TOKEN'
The key names its own organization, so no X-Organization-ID header is needed.

Response

Successful Response

Returned inside the standard envelope.

Errors

StatusWhen
422Validation Error

Every status, with what causes it and what to do, is on the error reference.