Menu
Create Rule Promotion Job
Create a Rule Promotion Job
POST
/v2/rule-promotions/{uuid}/jobsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Create Rule Promotion Job action (under Promotions Builder).
- Fill in the fields below, then reference the result from later steps as
{{createRulePromotionJob.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"job_type": "code_generate",
"name": "string",
"parameters": {
"number_of_codes": 0,
"max_uses_per_code": 0,
"consume_unit": "per_application",
"code_prefix": "string",
"code_length": 8
},
"id": "string",
"type": "string",
"rule_promotion_id": "string"
}
}
Response
Returns 201 with an object. Read it in later steps with {{createRulePromotionJob.response.data.<field>}}.
{
"data": null
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?