Skip to main content
POST
/
api
/
apps
/
{app_id}
/
relations
Create a collection relation and automatically index join fields POST /api/apps/:app_id/relations
curl --request POST \
  --url https://api.example.com/api/apps/{app_id}/relations \
  --header 'Content-Type: application/json' \
  --data '
{
  "child_collection": "<string>",
  "child_field": "<string>",
  "parent_collection": "<string>",
  "parent_field": "<string>"
}
'

Path Parameters

app_id
string
required

Application ID

Body

application/json

Request body for creating a collection relation

child_collection
string
required
child_field
string
required
parent_collection
string
required
parent_field
string
required

Response

Relation created successfully