> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UnassignChildItemFromParent

> Removes the assignment of a variation child from its parent item. The child keeps existing as an item of its own. Afterwards the child's parentItemId is empty and isVariationChild is false; its variation value combination is removed, so assigning it again through POST /v2/items/{itemId}/children/{childItemId} needs variationValueIds again. The parent's stock is recalculated, and its isVariationParent becomes false when the last child is removed. If the parent is stock-managed and the detached child was its last stock-managed child, the parent's stock management is switched off as well. Reverse of POST /v2/items/{itemId}/children/{childItemId}. A second call for the same pair answers 404, because the child is no longer assigned; it changes nothing, so repeating the call after a lost response is safe. A missing assignment answers with error code EntityNotFound, an unknown parent with ItemNotFound, the eBay last-child refusal with LastChildOfEbayListedParent, and a child whose own data is invalid for a variation child (for example an empty default name or item number) with ChildItemFailsVariationValidation.



**mutation** `UnassignChildItemFromParent(request: UnassignChildItemFromParentCommandRequestInput!): Boolean!`

## Arguments

**`request`**: `UnassignChildItemFromParentCommandRequestInput!` (required)

## Returns

`Boolean!`

## Examples

```graphql Mutation
mutation UnassignChildItemFromParent($request: UnassignChildItemFromParentCommandRequestInput!) {
  UnassignChildItemFromParent(request: $request)
}
```

```json Variables
{
  "request": {
    "itemId": "id",
    "childItemId": "id"
  }
}
```

```json Response
{
  "data": {
    "UnassignChildItemFromParent": true
  }
}
```
