Update email endpoint
Updates the configurable behavior of an inbound email endpoint and returns the refreshed endpoint with counters. Admin only and scoped to the caller’s workspace. Omitted fields keep their current values, supplying allow_patterns replaces the allowlist wholesale, and the localpart and kind cannot be changed. The system workspace mailbox cannot be edited here (400), and an unknown or cross-workspace id returns 404.
Authorizations
Personal Access Token. Send as Authorization: Bearer hq_pat_....
Path Parameters
Endpoint id
Body
The editable behavior fields. All optional on PATCH (a full-form replace); on create, missing values fall back to the DB column defaults.
Replaces the allowlist set wholesale when present.
Response
Endpoint updated
True for the workspace outbound mailbox (HQ-managed): not deletable, not a normal custom inbox - the UI renders it as the workspace mailbox.
Total mail (in + out) attributed to this endpoint.
Items needing a human (handling_state <> 'handled').
Disposition counters (E7.2): inbound received, outbound replies sent, per-state queues, and threads escalated light -> agent.
Reply-language distribution: { "English": 12, "Swedish": 3 }.