manage_relationship_type
Manage relationship types. A relationship type must exist before any relationship of that type can be created — it optionally validates the relationship's metadata against a JSON Schema and restricts which record_types it may connect. Actions: upsert, get, list, delete.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | enum: upsert | get | list | delete | Yes | |
base_id | string | Yes | Target database ID |
rel_type | string | No | The relationship type id (rel_type). Required for upsert, get, delete |
description | string | No | |
data_schema | object | No | JSON Schema validating the relationship's data. Omit or null to allow any data. |
source_record_types | array | No | Allowed source record_types. Empty/omitted means any record_type. |
target_record_types | array | No | Allowed target record_types. Empty/omitted means any record_type. |