Replace related records
Replaces the full set of records linked through the given relationship with the records in `data`. Links not listed are removed; this is not additive.
Authorization
apiKey API key authentication. Send your key in the Authorization header as: api-key <your-api-key>.
In: header
Path Parameters
The workspace slug — the {slug} segment of your Clarify workspace URL.
The object type: a built-in entity (person, company, deal, …) or a custom object (c_*).
The unique ID of the record.
The relationship field name as defined in the object’s schema, e.g. people or companies.
Query Parameters
When true, suppresses in-app and Slack notifications for this mutation.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/workspaces/string/objects/string/records/string/relationships/string" \ -H "Content-Type: application/json" \ -d '{ "data": [ { "type": "deal", "id": "e7c9a1f4-2b8d-4c6e-9f0a-5d3b7e1c8a42" } ] }'{}List related records
Returns the records linked to a record through the given relationship, e.g. the deals related to a person.
Create records in bulk
Creates multiple records of the given object type in one request. The request is validated as a whole: if any record fails validation, none are created. Pass `match_on` with the name of a unique field to upsert matching records instead of creating duplicates.