Create Relationship
POST
/admin/content/{collectionId}/relationships
const url = 'http://localhost:9000/admin/content/example/relationships';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"target_collection_id":"example","relationship_type":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/admin/content/example/relationships \ --header 'Content-Type: application/json' \ --data '{ "target_collection_id": "example", "relationship_type": "example" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” collectionId
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
target_collection_id
required
string
relationship_type
required
string
Example generated
{ "target_collection_id": "example", "relationship_type": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}