Menu
Create a new campaign
Create a new campaign
POST
/shops/{shopKey}/campaignsUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Create a new campaign action (under Campaigns).
- Fill in the fields below, then reference the result from later steps as
{{createANewCampaign.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"name": "My Campaign",
"countryCodes": [
"DE",
"GB"
],
"startAt": "2021-01-23T11%3A30%3A58%2B00%3A00",
"endAt": "2021-09-23T11%3A30%3A58%2B00%3A00",
"id": 1,
"description": "My first campaign.",
"reduction": 10.45,
"campaignKey": "05f962c8-857b-462a-bea2-54e2bfecf729",
"customData": null,
"headline": {
"de_DE": "Meine Kampagnenüberschrift",
"en_US": "My campaign headline"
},
"subline": {
"de_DE": "Meine Kampagnenunterzeile",
"en_US": "My campaign subline"
},
"link": {
"de_DE": "/mein-kampagne",
"en_US": "/my-campaign"
}
}
Response
Returns 201 with an object. Read it in later steps with {{createANewCampaign.response.data.<field>}}.
{
"name": "My Campaign",
"countryCodes": [
"DE",
"GB"
],
"startAt": "2021-01-23T11%3A30%3A58%2B00%3A00",
"endAt": "2021-09-23T11%3A30%3A58%2B00%3A00",
"id": 1,
"description": "My first campaign.",
"reduction": 10.45,
"campaignKey": "05f962c8-857b-462a-bea2-54e2bfecf729",
"customData": null,
"headline": {
"de_DE": "Meine Kampagnenüberschrift",
"en_US": "My campaign headline"
},
"subline": {
"de_DE": "Meine Kampagnenunterzeile",
"en_US": "My campaign subline"
},
"link": {
"de_DE": "/mein-kampagne",
"en_US": "/my-campaign"
}
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?