Updating Retailer Configurations

Required Permission

can-create-configurations

See Auth* (scopes).

Request

PUT /configurations/<configuration ID>
Authorization: Bearer <token>
Content-Type: application/json

Example request body:

{
  "configurationId": "0057c39d-f404-4de4-a527-1250a8935fed",
  "user": "test",
  "url": "https://test.mpm.metapack.com/BlackBox",
  "enabled": true,
  "repositoryType": "SMR",
  "retailerId": "0057c39d-f404-4de4-a527-1250a8935fed",
  "apiKey": "0057c39d-f404-4de4-a527-1250a8935fed",
  "password": "test"
}

Request For DM

PUT /configurations/<configuration ID>
Authorization: Bearer <token>
Content-Type: application/json

Example request body:

{
  "configurationId": "b3321ef1-45fa-47dc-9795-8aff6642e63c",
  "user": "test",
  "url": "http://test.metapack.com/api",
  "enabled": true,
  "repositoryType": "DM",
  "retailerId": "b3321ef1-45fa-47dc-9795-8aff6642e63c",
  "shipperId": "68096539-270e-4bac-b0d8-9ca22c77da50",
  "apiKey": "b3321ef1-45fa-47dc-9795-8aff6642e63c",
  "password": "test"
}

Response

HTTP/1.1 200 OK

Configuration successfully updated

Failure

Unexistent configuration ID:

HTTP/1.1 404 NOT FOUND

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

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""