Submit updates to existing Merchandising campaigns. A response with status: ok acknowledges the request. Retrieve the campaign with GET /merchandising and compare the returned fields to confirm that the changes took effect.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Update campaigns using key, private_key, and a campaigns array in the JSON body. Include the existing campaign id and the full campaign fields shown: name, active, rules, triggers, and triggers_match. Include the required campaign fields even when only changing the description.
Use the ID returned by POST. The example keeps the campaign inactive.
A response with status ok acknowledges the request. Use a later GET request to verify stored changes.
Check status in the response body even when HTTP 200 is returned. Keep your private API key on your server.
