Menu
Post V2 Promotions Promotionid Jobs
Create a Promotion Job
POST
/v2/promotions/{promotionID}/jobsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Post V2 Promotions Promotionid Jobs action (under Promotions).
- Fill in the fields below, then reference the result from later steps as
{{postV2PromotionsPromotionidJobs.response.data}}.
Request
Path parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"type": "promotion_job",
"job_type": "code_generate",
"name": "string",
"parameters": {
"number_of_codes": 0,
"max_uses_per_code": 0,
"consume_unit": "per_item",
"code_prefix": "string",
"code_length": 0
}
}
Response
Returns 201 with an object. Read it in later steps with {{postV2PromotionsPromotionidJobs.response.data.<field>}}.
{
"data": {
"id": "string",
"type": "promotion_job",
"promotion_id": "string",
"job_type": "string",
"name": "string",
"parameters": {},
"status": "string",
"meta": {
"timestamps": {
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
}
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?