Update a site piggyback
Changes one site piggyback the way the console's piggyback grid does: codeUrl, active, sampling, deliveryAttribution and the action it fires for (actionId, or allActions=true for every action of the campaign).
https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/site/{id}/update.do Changes one site piggyback the way the console's piggyback grid does: codeUrl, active, sampling, deliveryAttribution and the action it fires for (actionId, or allActions=true for every action of the campaign). A field not sent keeps its value; the type cannot change. Needs the Piggyback Pixel Tracking permission and update rights on the site's site. Returns the piggyback as the list does, in 'piggyback'. Parameters that were sent but not applied are listed in 'ignoredFields', each with its reason in 'ignoredFieldReasons'.
Path Params
id integer required
The unique numeric identifier of the piggyback to change
601 Form Params
actionId integer
Fire only for this action; ignored when allActions is true
101 active boolean
Whether the piggyback fires
true allActions boolean
true to fire for every action of the campaign
false codeUrl string
New tracking code (BEACON) or URL (URL type)
https://tracker.example.com/pixel?pid=789 deliveryAttribution string
Which conversions the piggyback fires for: ALL, POST_CLICK_ONLY or POST_VIEW_ONLY
ALL sampling integer
Percentage of conversions the piggyback fires on (0-100)
100 Responses
200
Piggyback updated (success:true), or success:false with per-field 'errors'
400
Bad request — invalid or missing parameters
401
Unauthorized - authentication error
403
Forbidden - no update rights on the site, or the Piggyback Pixel Tracking permission is not enabled
404
No site piggyback with this id