Update campaign
PUT
/ admin/ v1/ stores/ {store_id}/ campaigns/ {campaign_id}- customers:write
Edits a draft or scheduled campaign.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.campaign_idstringrequiredThe campaign's ID, like
camp_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestringrequiredchannelenumrequiredHow a campaign reaches customers.
- sms
segment_idstring · or nullTypeID with the
segprefix.subjectstring · or nullEmail only.
bodystringbutton_labelstring · or nullbutton_urlstring · or nulldiscount_codestring · or nullA discount code to show (create it in Discounts, for the same segment).
Returns
200 Saved.
Errors
- 409Sent or cancelled already.