Update a custom promotion rule
How to update an existing custom promotion rule via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X PATCH \
'https://yourdomain.commercelayer.io/api/custom_promotion_rules/XAyRWNUzyN' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "custom_promotion_rules",
"id": "xYZkjABcde",
"attributes": {
"filters": {
"status_eq": "pending",
"line_items_sku_code_eq": "AAA"
}
},
"relationships": {
"promotion": {
"data": {
"type": "promotions",
"id": "ABCRtyUpBa"
}
}
}
}
}'Last updated