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

NameTypeRequiredDescription
actionenum: upsert | get | list | deleteYes
base_idstringYesTarget database ID
rel_typestringNoThe relationship type id (rel_type). Required for upsert, get, delete
descriptionstringNo
data_schemaobjectNoJSON Schema validating the relationship's data. Omit or null to allow any data.
source_record_typesarrayNoAllowed source record_types. Empty/omitted means any record_type.
target_record_typesarrayNoAllowed target record_types. Empty/omitted means any record_type.
manage_relationship_type — Rekor