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).
PATCH
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
Body
application/json
Available options:
all, any Available options:
coupon_code, automatic Response
200 - application/json
rules and actions cleared with empty arrays
Spree Admin SDK

