Create a rule on a promotion
Adds a new rule to a promotion. The type is the wire shorthand from GET /promotion_rules/types (e.g. currency, item_total, product). Fully-qualified Ruby class names are also accepted for backward compatibility.
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
Response
rule created with preferences
Spree Admin SDK

