mutation UnassignChildItemFromParent($request: UnassignChildItemFromParentCommandRequestInput!) {
UnassignChildItemFromParent(request: $request)
}{
"request": {
"itemId": "id",
"childItemId": "id"
}
}{
"data": {
"UnassignChildItemFromParent": true
}
}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//children/ 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//children/. 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.
UnassignChildItemFromParent(request: UnassignChildItemFromParentCommandRequestInput!): Boolean!Arguments
Returns
mutation UnassignChildItemFromParent($request: UnassignChildItemFromParentCommandRequestInput!) {
UnassignChildItemFromParent(request: $request)
}{
"request": {
"itemId": "id",
"childItemId": "id"
}
}{
"data": {
"UnassignChildItemFromParent": true
}
}Was this page helpful?