Skip to content

ADC17 - Partially update campaign publisher stores

Request

Description

Updates campaign rights for publisher-store pairs. Omitted or null rights, channels and permissions remain unchanged. Revoking self_service (true to false) schedules asynchronous deactivation of the seller's campaigns on that channel. Null batch items are returned as per-item failures with campaign_publisher_store set to null. Failures are not returned in request order: use campaign_publisher_store to match each failure to its request item.

Bodyapplication/json
Array [
publisher_idstringrequired

Publisher ID

Example:"99976f22-9900-adef-1235-bff3faaafff1"
rightsobject

Campaign rights to partially update. Omitted or null rights, channels and permissions remain unchanged.

store_idstringrequired

Store public ID

Example:"store-public-001"
]
curl -i -X PATCH \
  https://retailmedia.mirakl.net/api/v1/campaign-publisher-stores \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "publisher_id": "99976f22-9900-adef-1235-bff3faaafff1",
      "rights": {
        "display": {
          "self_service": false
        },
        "sponsored_product": {
          "review_managed_service": true,
          "self_service": true
        }
      },
      "store_id": "store-public-001"
    }
  ]'

Responses

OK

Bodyapplication/json
failureArray of objectsrequired

List of campaign publisher stores that failed update. Failures are not returned in request order: each failure contains the original campaign publisher store.

successArray of objectsrequired

List of campaign publisher stores successfully updated

Response
{ "failure": [ { … } ], "success": [ { … } ] }