Skip to content

OFS01 - Partially update publisher-store Offsite settings in bulk

Request

Description

Requires a publisher-group or supervisor token with SHOP scope. Supply publisher UUIDs and store public IDs. A maximum of 1000 items is accepted by default; multiple publishers may be included.

Omitted fields are preserved. Set gmc_account_id to null to clear it, or to a nonblank string to replace it. Null is not accepted for enabled or budget fields. Target margin ranges from 0 to 90, and maximum budget mix from 0 to 100. min_budget_threshold is a publisher-level setting and cannot be configured through this API; it is ignored if supplied.

A missing configuration is inserted from publisher-specific defaults merged with supplied values. If the publisher has no active Offsite defaults, target margin 0 and maximum budget mix 80 are used. Initial enablement follows the configured store default (disabled by default). This API does not activate publisher Offsite. Existing rows keep their enablement on GMC-only updates. Terminated stores cannot be configured or updated, even when a configuration already exists.

Valid items are saved despite validation or affiliation failures for other items. All occurrences of duplicate publisher/store pairs fail. Empty arrays return empty results; unchanged items succeed.

Bodyapplication/json
Array [
enabledboolean

Enable or disable Offsite. Omit to preserve. Null is not accepted.

gmc_account_idstring

GMC account ID. Omit to preserve the current value. Null clears it. Non-null values must not be blank.

max_budget_mixinteger, (int32), [ 0 .. 100 ]

Maximum budget mix percent. Omit to preserve. Null is not accepted.

publisher_idstringrequired

Publisher UUID

publisher_target_margininteger, (int32), [ 0 .. 90 ]

Publisher target margin percent. Omit to preserve. Null is not accepted.

store_idstringrequired

Store public ID, not its internal UUID

]
curl -i -X PATCH \
  https://retailmedia.mirakl.net/api/v1/offsite-publisher-stores \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "gmc_account_id": "123456789",
      "publisher_id": "99976f22-9900-adef-1235-bff3faaafff1",
      "store_id": "store-public-001"
    },
    {
      "enabled": false,
      "max_budget_mix": 30,
      "publisher_id": "99976f22-9900-adef-1235-bff3faaafff1",
      "publisher_target_margin": 15,
      "store_id": "store-public-002"
    },
    {
      "gmc_account_id": null,
      "publisher_id": "99976f22-9900-adef-1235-bff3faaafff1",
      "store_id": "store-public-003"
    }
  ]'

Responses

Per-item successes and failures

Bodyapplication/json
failureArray of objects

Rejected input items and their causes

successArray of objects

Publisher-store settings successfully updated, including unchanged items

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