Creating Retailers

Required Permission

can-create-retailers

See Auth* (scopes).

Request

POST /retailers HTTP/1.1
Content-Type: application/json
Authorization: Bearer <bearer token>
{
  "id": "00357362-3219-476e-87cd-4c05b1d1ce02",
  "name": "test",
  "details": "test 2"
}

Response

HTTP/1.1 201 CREATED
{
  "rel": "self",
  "href":"/retailers/00357362-3219-476e-87cd-4c05b1d1ce02"
}

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

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""