Updating Location Providers Linked with Retailers

Required Permission

can-update-retailers

See Auth* (scopes).

Request

PUT /retailers/:id/locationProviders HTTP/1.1
Authorization: Bearer <bearer token>
[{
  "retailerId": "557bd13e-0c4f-11e6-a148-3e1d05defe78",
  "locationProviderId": "54438f2f-349b-4835-b3cb-871766344b45",
  "ownStores": false,
  "excludedLocationTags": ["tag1"]
}, {
  "retailerId": "557bd13e-0c4f-11e6-a148-3e1d05defe78",
  "locationProviderId": "5b1f0987-6636-4bfb-b4e0-0c8351f84790",
  "ownStores": false,
  "countryCode": "GBR"
}]

Response

HTTP/1.1 200 OK

Failure

Request error; e.g. invalid JSON object:

HTTP/1.1 400 BAD REQUEST

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Retailer id does not exist:

HTTP/1.1 404 NOT FOUND

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""