Skip to main content
POST
Spree Admin SDK

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Path Parameters

promotion_id
string
required

Body

application/json
type
string
required

The action kind, from GET /promotion_actions/types.

Example:

"free_shipping"

preferences
object

Values for the action kind's settings schema, from GET /promotion_actions/types.

calculator
object

For adjustment actions.

line_items
object[]

For create_line_items: the variants to add and their quantities. Variants left out are removed.

Response

action created