updateProductUOMListPrice
Requires permission products:pricing:update.
Set the list price of one unit (pack) of a product. It applies to every row of that unit on the product, including variant-level rows. Needs the pricing 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 UpdateProductUOMListPrice($listPrice: Float!, $productId: String!, $uomId: String!) {
updateProductUOMListPrice(
listPrice: $listPrice
productId: $productId
uomId: $uomId
) {
success
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateProductUOMListPrice($listPrice: Float!, $productId: String!, $uomId: String!) {\n updateProductUOMListPrice(\n listPrice: $listPrice\n productId: $productId\n uomId: $uomId\n ) {\n success\n }\n}",
"variables": {
"listPrice": 0,
"productId": "string",
"uomId": "string"
}
}
EOF
Variables:
{
"listPrice": 0,
"productId": "string",
"uomId": "string"
}
Response:
{
"data": {
"updateProductUOMListPrice": {
"success": true
}
}
}
updateProductUOMListPrice(
listPrice: Float!
productId: String!
uomId: String!
): BooleanResponse!
Arguments
updateProductUOMListPrice.listPrice ● Float! non-null scalar
The new list price of one of this unit.
updateProductUOMListPrice.productId ● String! non-null scalar
The ID of the product.
updateProductUOMListPrice.uomId ● String! non-null scalar
The ID of the unit of measure.
Type
BooleanResponse object
A yes or no outcome.