Skip to main content

removeProductUOM

Requires permission products:product:update.

Remove a unit (pack) from a product or variant (a soft delete). The base unit cannot be removed; change the base unit first. Needs the products update permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RemoveProductUOM($id: String!) {
removeProductUOM(id: $id)
}

Variables:

{
"id": "string"
}

Response:

{
"data": {
"removeProductUOM": true
}
}
removeProductUOM(
id: String!
): Boolean!

Arguments​

removeProductUOM.id ● String! non-null scalar​

The ID of the product unit (pack) to remove.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.