Skip to main content
POST
Add carrier contacts, or correct, confirm, mark as left, report, archive or restore a market's contact

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Nexio-Act-As
string

The member the read is made for (a WorkOS user id). Unset keeps the org-wide posture the key alone grants.

Nexio-Act-As-Email
string

The acting member's verified email, lowercased. Ignored without Nexio-Act-As.

Nexio-Consumer
string

The calling application (workbench).

Nexio-Consumer-Build
string

The calling application's build.

Nexio-Consumer-Vocabulary
string

The access vocabulary hash the calling build was generated against.

Nexio-Request-Id
string

A caller-chosen request id, echoed in the Nexio-Request-Id response header.

Nexio-Timeout
string

The caller's remaining budget for this request, in whole milliseconds (1 to 10 digits, greater than zero), relative to receipt. The engine stops work at the shorter of this and the route's own budget, and answers 504 request_timeout when it expires. A value above the route budget is capped to it; a malformed value is ignored.

Idempotency-Key
string
required

One key per edit: a repeated key answers the first.

Required string length: 8 - 128

Body

application/json
kind
enum<string>
required

archived takes a contact off the market's current list and keeps it, its values and its history; restored makes an archived or left contact current again.

Available options:
added,
corrected,
confirmed,
left,
reported,
archived,
restored
contact
object
deprecated

deprecated: send contacts, a list of one. For added: one new contact.

contact_id
string

The contact edited; empty for added.

Maximum string length: 300
contacts
object[] | null

For added: the new contacts, 1 to 200 (one add is a list of one). Each names its carrier by market or carrier, else the request's market. A contact that duplicates a current contact at its carrier (the same e-mail in any case, or the same name when neither has an e-mail) is skipped; a carrier that resolves to no single market leaves the contact unmatched.

Maximum array length: 200
field
enum<string>

The value a correction changes; product_id sets the contact's line.

Available options:
name,
title,
contact_type,
product_id,
region,
email,
phone,
ext
market
string

The market the edit is on, as GET /records/carrier-contacts takes it. Required for every kind but added; for added, the carrier of every contact that names none itself.

Maximum string length: 600
note
string

For reported: what is wrong, in the reporter's words. Required for other.

Maximum string length: 300
preview
boolean

For added: answer what each contact would be (added, skipped or unmatched) and write nothing.

reason
enum<string>

For reported: why the contact needs a look. It left the carrier, its details are wrong, or another reason the note gives.

Available options:
left_carrier,
details_wrong,
other
replaced_by
string

For left: the id of the contact who replaced them, already on this market. A replacement on no list is added first, then the contact is marked left: two edits.

Maximum string length: 300
value
string

The corrected value; for product_id, a product id of /records/products.

Maximum string length: 300

Response

OK

preview
boolean
required

True when nothing was written.

request_id
string
required
source
object
required
unreachable
object[] | null
required
warnings
object[] | null
required
data
object

The contact as GET /records/carrier-contacts serves it: the one edited, or for an add of one contact the contact added, or the current one it duplicates. Absent for a preview and for an add of several contacts.

rows
object[] | null

For added: each contact's outcome, in request order.

totals
object

For added: the contacts per outcome.