Update a promotion
Updates a promotion. The rules and actions arrays are treated as
a desired set — rows with id update in place, rows without id are
built fresh, and any existing row not present in the array is destroyed.
Pass rules: [] or actions: [] to clear them.
Required scope: write_promotions (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
Body
Required for single-code coupon promotions. Ignored when multi_codes is true.
all, any coupon_code needs a code (or multi_codes); automatic applies without one.
coupon_code, automatic Generates number_of_codes codes starting with code_prefix.
The rules the promotion should have: entries with id update, entries without are created, and rules left out are removed.
The actions the promotion should have, matched the same way as rules.
Response
rules and actions cleared with empty arrays

