Set per-role contact assignments for a merchant's connection

Replaces the entire role-to-contact assignment map on the connection. Inline-created contacts are deduplicated by canonical (firstName, lastName, email) per merchant. Owner refs are validated against merchant.owners. Dropped role slots clear the assignment on the processor record; the underlying contact rows are preserved.

Path Params
string
required

The Preczn merchant whose connection contact-roles will be updated.

string
required

Connection id OR processor enum value.

Responses
200

Updated.

400

Validation failure. Returns { errors: [{ path, message }] } for Zod issues.

401

Unauthorized (test-mode mismatch).

403

Forbidden (platform mismatch).

404

Merchant or connection not found.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!