API reference · Assets
DELETE/api/v1/assets/relationships/{relationshipId}

Delete asset relationship

Deletes an asset relationship by asset_relationships.relationship_id for the authenticated tenant. The service hard-deletes rows where relationship_id and context.tenant match, publishes no event, and performs no existence check; missing or cross-tenant IDs are silent no-ops. The controller intends to return 204 with no body, but currently constructs a JSON response with status 204, which can throw in NextResponse. In the current route wiring, req.context may also be absent because no route-level API-key auth wrapper sets it, causing a 500 before deletion.

RBAC · asset

Path parameters

relationshipIdstring <uuid>Required
Asset relationship UUID from asset_relationships.relationship_id.

Response codes

204
Relationship deleted successfully, or it was already absent.
401
x-api-key is missing at middleware.
403
Authenticated request context lacks permission to update asset relationships when auth wiring is present.
500
Unexpected error, including missing req.context or the current 204 JSON response construction issue.