Open Inventory docs
API referenceResourcesResourcesIdFamily

Detach a first-class variant from its primary item

The API runs on your own Open Inventory instance. Session-authenticated requests require a session on that instance.

DELETE
/resources/{id}/family

Removes only the protected variant_of family link. The currently effective inherited bill of materials is materialized onto the same inventory resource first. Stock, locations, serial units, ordinary relationships, assignments, and manufacturing history stay attached to that resource.

Authorization

bearerAuth
headerAuthorizationBearer <inv_ token>

Path Parameters

id*string
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

Variant detached and its effective bill of materials materialized

application/json
  1. response
detached*
Example Request
curl -X DELETE 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/family'
Example Response
{  "detached": {    "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",    "materializedBomLineCount": 0  }}