Creates a relationship row between the path asset ID and related_asset_id for the authenticated tenant. The request body requires related_asset_id and non-empty relationship_type. The service rejects self relationships and duplicate source/related pairs, but currently throws generic Errors for those cases, which surface as 500 rather than 400 or 409. The inserted row is returned without joined related asset details. In the current v1 asset route wiring, req.context may be absent because no route-level API-key auth wrapper sets it, causing a 500 before insert.
Content type: application/json · schema AssetRelationshipCreateRequest
Success response 201 · schema AssetRelationshipResponse
trueworkstationnetwork_deviceservermobile_deviceprinterunknown