Spree Admin SDK
Create an action on a promotion
Adds a new action to a promotion. The type is the wire shorthand from GET /promotion_actions/types (e.g. free_shipping, create_item_adjustments).
Required scope: write_promotions (for API-key authentication).
POST
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
Body
application/json
The action kind, from GET /promotion_actions/types.
Example:
"free_shipping"
Values for the action kind's settings schema, from GET /promotion_actions/types.
For adjustment actions.
For create_line_items: the variants to add and their quantities. Variants left out are removed.
Response
action created

