Preview merging a client into another
curl --request GET \ --url 'https://example.com/api/v1/clients/example/merge-preview?targetClientId=example' \ --header 'Authorization: Bearer <token>'Reports what merging client {id} into targetClientId would move, drop and leave a remark about, without writing anything. Applies the same refusals and conflict rules as POST /clients/{id}/merge, so a 409 or 422 here means the merge itself would fail the same way. Requires the clients.edit permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The merge preview.
object
What merging one client into another moves, drops and leaves a remark about.
object
Rows discarded because the target already holds an equivalent.
object
Rows re-pointed from the source client to the target, per relation.
object
Remarks about conflict resolutions worth reading before merging.
object
object
Example generated
{ "data": { "dropped": { "affiliateLinks": 1, "directAccess": 1, "fieldValues": 1, "referrals": 1, "responsibles": 1, "roles": 1, "tags": 1, "teams": 1 }, "moved": { "affiliateLinks": 1, "commissions": 1, "contacts": 1, "deals": 1, "directAccess": 1, "estimates": 1, "fieldValues": 1, "impersonations": 1, "importMappings": 1, "invoices": 1, "orderFormSubmissions": 1, "orders": 1, "paymentRequests": 1, "projects": 1, "referralCommissions": 1, "referralsMade": 1, "referralsReceived": 1, "resources": 1, "responsibles": 1, "roles": 1, "tags": 1, "tasks": 1, "tasksCreated": 1, "teams": 1 }, "notes": [ "example" ], "source": { "id": "example", "name": "example" }, "target": { "id": "example", "name": "example" } }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Source or target client not found in this workspace.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}The same person is on both clients; remove one before merging.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}The target is the source itself, or is archived.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC