cURL
curl --request PUT \ --url https://{workspaceId}.clinia.cloud/sources/{sourceKey}/v1/relationship-definitions/{relationshipDefinitionKey} \ --header 'Content-Type: application/json' \ --header 'X-Clinia-API-Key: <api-key>' \ --data ' { "from": { "profileKey": "<string>", "includeKey": "<string>", "includeCardinality": "0:*" }, "to": { "profileKey": "<string>", "includeKey": "<string>", "includeCardinality": "0:*" }, "description": "<string>", "properties": {} } '
{ "from": { "profileKey": "<string>", "includeKey": "<string>", "includeCardinality": "0:*" }, "to": { "profileKey": "<string>", "includeKey": "<string>", "includeCardinality": "0:*" }, "properties": {}, "key": "<string>", "description": "<string>" }
Create a relationship definition in the registry.
The key of the source.
The key of the relationship definition. It must follow pattern: ^[a-zA-Z0-9-][\w-]{0,61}$.
^[a-zA-Z0-9-][\w-]{0,61}$
Show child attributes
Description of the relationship definition.
A successful response when the relationship definition was created.
Was this page helpful?