deleteUOMConversion
Requires permission products:product:update.
Delete a conversion together with its reverse conversion (a soft delete). 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:
- GraphQL
- cURL
mutation DeleteUOMConversion($id: String!) {
deleteUOMConversion(id: $id)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation DeleteUOMConversion($id: String!) {\n deleteUOMConversion(id: $id)\n}",
"variables": {
"id": "string"
}
}
EOF
Variables:
{
"id": "string"
}
Response:
{
"data": {
"deleteUOMConversion": true
}
}
deleteUOMConversion(
id: String!
): Boolean!
Arguments
deleteUOMConversion.id ● String! non-null scalar
The ID of the conversion to delete.
Type
Boolean scalar
The Boolean scalar type represents true or false.