Custom objects

Add / remove a link

Links the record to another record through a relation type (act: add) or removes the link (act: remove). On a single (N:1) relation the new target replaces the old one. The response is the updated record.

POST/api/v1/objects/{key}/records/{id}/links

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: CustomersScope: crm.write

Path parameters

keystringrequired
Object key.
idintegerrequired
Record id.

Body application/json

relationstringrequired
Relation key (/objects → relations[].key).
target_idintegerrequired
Target record id.
actstringoptionaldefault: add
Operation.
Valuesaddremove

Errors

HTTPerrorMeaning
400invalidMissing or invalid field (`message` explains).
403forbiddenYou may not see / edit this record.
404not_foundRecord not found.
Request
curl -X POST https://ornek.solk.app/api/v1/objects/{key}/records/{id}/links \
  -H "Authorization: Bearer $SOLK_API_KEY"
Response