Object relations
Link relation
Links the target row to this row via the relation. Requires a USER API key.
post/public/v1/objects/{name}/rows/{id}/relations/{relation}/link
Path parameters
namestring required
Example:deals
idstring required
Row id (Mongo ObjectId)
Example:65cf9b3a4b7c2a0012a3b4c5
relationstring required
Example:companies
Request body
Example request
{
"target_id": "65cf9b3a4b7c2a0012a3b4c5"
}Response
Updated row
Example response
{
"ok": true,
"data": {
"id": "example",
"auto_id": 1,
"created_at": "example",
"updated_at": "example"
}
}