Create relationship
1 min
POST
https://api.us1.odp.optimizely.com/v3/schema/objects/{object_name}/relations
object_namestringThe name of the object where you want to create the relationship.
acceptstringGenerated from available response content types
bodyobject
200OK
400Bad Request
403Forbidden
curl --request POST \
--url https://api.us1.odp.optimizely.com/v3/schema/objects/{object_name}/relations \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"child_object": "child",
"name": "relation_name",
"display_name": "Relation Display Name",
"public_read": false,
"join_fields": [
{
"parent": "id"
}
]
}'