Update Product Complex Rule
Updates a *Complex Rule*.
**Required Fields**:
- none
**Read-Only Fields**:
- complex_rule_id
- conditions_id
- rule_id
- combination_id
- id
Authentication
X-Auth-Tokenstring
### OAuth scopes
| UI Name | Permission | Parameter |
|:--------|:-----------|:----------|
| Products | modify | `store_v2_products` |
| Products | read-only | `store_v2_products_read_only` |
### Authentication header
| Header | Argument | Description |
|:-------|:---------|:------------|
| `X-Auth-Token` | `access_token` | For more about API accounts that generate `access_token`s, see our [Guide to API Accounts](/developer/docs/overview/api-fundamentals/api-accounts#api-accounts). |
### Further reading
For example requests and more information about authenticating BigCommerce APIs, see [Authentication and Example Requests](/developer/docs/overview/api-fundamentals/api-accounts#x-auth-token-header-example-requests).
For more about BigCommerce OAuth scopes, see our [Guide to API Accounts](/developer/docs/overview/api-fundamentals/api-accounts#oauth-scopes).
For a list of API status codes, see [API Status Codes](/developer/api-reference/rest/overview#rest-http-status-codes).
Path parameters
product_id
complex_rule_id
Request
Common ComplexRule properties.
sort_order
The priority to give this rule when making adjustments to the product properties.
enabled
Flag for determining whether the rule is to be used when adjusting a productʼs price, weight, image, or availabilty.
stop
Flag for determining whether other rules should not be applied after this rule has been applied.
purchasing_disabled
Flag for determining whether the rule should disable purchasing of a product when the conditions are applied.
purchasing_disabled_message
Message displayed on the storefront when a rule disables the purchasing of a product.
image_url
The URL for an image displayed on the storefront when the conditions are applied. Limit of 8MB per file.
price_adjuster
Adjuster for Complex Rules.
weight_adjuster
Adjuster for Complex Rules.
conditions
Response
data
Common ComplexRule properties.
meta
Response metadata.
Errors
409
Conflict Error
422
Unprocessable Entity Error