costPriceUpdate
Update an existing cost price record.
Modifies cost values, quantity thresholds, or other cost price settings. Changes will affect margin calculations and pricing analysis.
Possible errors:
- COST_PRICE_NOT_FOUND_ERROR: Cost price with the specified ID does not exist
- COST_PRICE_UPDATE_ERROR: Failed to update the cost price record
AUTH: Role=[pricing.OWNER,pricing.EDITOR]
costPriceUpdate(
id: String!
input: CostPriceUpdateInput!
): CostPrice!
Arguments
costPriceUpdate.id
● String!
non-null scalar
Unique identifier of the cost price record to update.
Must be a valid UUID format representing an existing cost price in the system.
costPriceUpdate.input
● CostPriceUpdateInput!
non-null input
Updated cost price configuration data.
Only provided fields will be updated, others remain unchanged.