removeUOMImage
Requires permission products:product:update.
Remove a unit's icon image and delete the stored file. 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 RemoveUOMImage($uomId: String!) {
removeUOMImage(uomId: $uomId)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RemoveUOMImage($uomId: String!) {\n removeUOMImage(uomId: $uomId)\n}",
"variables": {
"uomId": "string"
}
}
EOF
Variables:
{
"uomId": "string"
}
Response:
{
"data": {
"removeUOMImage": true
}
}
removeUOMImage(
uomId: String!
): Boolean!
Arguments
removeUOMImage.uomId ● String! non-null scalar
The ID of the unit of measure.
Type
Boolean scalar
The Boolean scalar type represents true or false.