Promote contact
promote_contactPromote a collected contact to an asserted record, unlocking updates. Changes local state only, leaving mail untouched.
Instructions
Takes on one person MailFathom collected from arriving mail, so the record becomes one the owner asserted rather than one the deployment inferred. This is the only path between the two origins and it runs one way; it is also what unlocks update_contact on a record that answered contactWasCollected. Nothing about the person is rewritten. Writes to local state only, and touches no mail. A contact that was already asserted answers alreadyAsserted. The answer carries the outcome alone and never the record; read the person with get_contact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | Yes | The contactId of the collected person to take on, as a listing or an earlier read returned it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | How the write ended. written means the book holds the record; notFound means no contact of that identifier is in the book; addressHeldByAnotherContact means one of the addresses already belongs to somebody else, named by addressHolderContactId; contactWasCollected means the record came from mail that arrived rather than from somebody writing it down, so promote_contact it before amending it; alreadyAsserted means a promotion had nothing left to do. | |
| contact | No | The record as the book now holds it, or null. Only a write whose record you supplied publishes one: create_contact, update_contact, add_contact_address, and remove_contact_address answer with the record when they succeed, while promote_contact answers with the outcome alone and is read back with get_contact. | |
| addressHolderContactId | No | The identifier of one contact that already holds an address this write claimed, or null when that is not what stopped it. Read that contact with get_contact to see who it is; a record may clash with more than one person, and this names one of them. |