Open Inventory / Docs
EndpointsInventory structureRelationsRelationid

Remove a manual resource relationship

The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.

DELETE
/relations/{relationId}

Spatially derived relationships cannot be deleted directly. After deletion, spatial containment is recalculated.

Authorization

bearerAuth
headerAuthorizationBearer <inv_ token>

Path Parameters

relationId*string
Formatuuid

Query Parameters

resourceId*string

One endpoint of the relationship, used to scope the deletion.

Formatuuid

Header Parameters

X-Organization-ID?string

Organization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.

Formatuuid

Response Body

Manual relationship removed

Example Request
curl -X DELETE 'https://inventory.example.com/api/v1/relations/497f6eca-6276-4993-bfeb-53cbbbba6f08?resourceId=497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty