Create Asset Relationship
POST/api/v1/assets/:asset_id/relationships
Create (idempotent upsert) a relationship between the path asset and another asset.
REQUEST PARAMETERS
| Parameter | Type | Description |
|---|---|---|
target_asset_id | string | Required. The other asset to relate to. |
relationship_type | string | Required. parent_child, related, or a custom type. |
direction | string | parent_child only. child (default) = path asset is the parent; parent = path asset is child. |
subtype | string | Optional. e.g. auto_enhance, remove_background, manual. |
note | string | Optional free-text note. |
Edit access is required on both assets.
Request
Responses
- 200
- 400
- 401
- 404
The created/updated relationship
Invalid input
Access denied
Asset not found