Relationships
Create a relationship definition
Changed onCreates a new relationship definition between two object types
post/v1/relationships
Request
- Base URLhttps://app.nex.ai/api/developers
- AuthAPI key in header Authorization
Request body
Example request
{
"type": "one_to_many",
"entity_definition_1_id": "123",
"entity_definition_2_id": "456",
"entity_1_to_2_predicate": "has",
"entity_2_to_1_predicate": "belongs to"
}Response
Created relationship definition
Example response
{
"id": "789",
"type": "one_to_many",
"entity_definition_1_id": "123",
"entity_definition_2_id": "456",
"entity_1_to_2_predicate": "has",
"entity_2_to_1_predicate": "belongs to",
"created_at": "2024-01-15T10:00:00Z"
}Changes
- info
endpoint added
- info