remove_party_email_address_by_id
Remove a specific email address from a party using its unique id. Combine with add_party_email_address to replace an existing email address.
Instructions
Remove one email-address entry from a party by its row id. Atomic and reversible — no confirm: true gate (re-add with add_party_email_address). Discover the id via get_party — each entry in the emailAddresses array carries one. Use this to replace an existing entry: remove the old id, then call add_party_email_address with the new value (any associated server-side metadata on the old row is discarded along with the row). Idempotent on retry: response is {removed: true, alreadyRemoved: false, partyId, emailAddressId, party} on a fresh remove (the updated party shape is included) or {removed: true, alreadyRemoved: true, partyId, emailAddressId} if the row was already gone (Capsule's 404 is caught).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| partyId | Yes | ||
| emailAddressId | Yes | Capsule's id for the email-address row. Read it from get_party (each entry in emailAddresses carries an id). |