Put Campaign Bundle Rules

PUT {{baseUrl}}/preview/campaigns/:campaignId/targeting/bundle-rules

Updates the targeted bundles for a campaign by adding a list of bundles to the current list.
The mode of targeting (allowlist/blocklist) cannot be updated through this method.

Request Body

{"data"=>{"type"=>"<string>", "attributes"=>{"type"=>"BUNDLE", "mode"=>"BLOCKLIST", "data"=>[{"value"=>"<string>", "readOnly"=>"<boolean>", "active"=>"<boolean>"}, {"value"=>"<string>", "readOnly"=>"<boolean>", "active"=>"<boolean>"}]}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;attributes&quot;:{&quot;type&quot;:&quot;DOMAIN&quot;,&quot;mode&quot;:&quot;BLOCKLIST&quot;,&quot;data&quot;:[{&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;readOnly&quot;:&quot;\u003cboolean\u003e&quot;,&quot;active&quot;:&quot;\u003cboolean\u003e&quot;},{&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;readOnly&quot;:&quot;\u003cboolean\u003e&quot;,&quot;active&quot;:&quot;\u003cboolean\u003e&quot;}]}}}