Update a sale discount
Update a sale discount.
Authorizations:Token
Query Parameters
| id required | stringResource identifier |
Request Body Schema:
The updated Sale Discount resource | use_custom_open_graph | boolean |
| og_meta | string or null |
| apply_to_wholesale | boolean |
| enabled | booleanDefault: trueExample: true |
| value | number |
| date_range_begin | string or null |
| date_range_end | string or null |
| show_in_separate_section | boolean |
| meta_description_type | stringDefault: "A"Example: "A" |
| specific_products | boolean |
| name | string |
| meta_tags | string |
| meta_description | string |
| meta_title | string |
| clean_url | string |
| product_classes | Array of integers |
| memberships | Array of integers |
| products | Array of integers |
| categories | Array of integers |
Responses
200Sale Discount resource updated
Response schema:
Sale Discount resource updated | use_custom_open_graph | boolean |
| og_meta | string or null |
| apply_to_wholesale | boolean |
| id | integer |
| enabled | booleanDefault: trueExample: true |
| value | number |
| date_range_begin | string or null |
| date_range_end | string or null |
| show_in_separate_section | boolean |
| meta_description_type | stringDefault: "A"Example: "A" |
| specific_products | boolean |
| name | string |
| meta_tags | string |
| meta_description | string |
| meta_title | string |
| clean_url | string |
| product_classes | Array of integers |
| memberships | Array of integers |
| products | Array of integers |
| categories | Array of integers |
400Invalid input
404Resource not found
422Unprocessable entity