Creating User Accounts

Request

POST /accounts/:role HTTP/1.1
Authorization: Bearer <bearer token>
{
  "id": "7e510d3d-a2e4-4a61-bad4-ca3be00dcf9a",
  "username": "test-username",
  "email": "test-email@gmail.com",
  "name": "Stuff"
}

Path Parameters

  • role: locationProviders / retailers

Response

HTTP/1.1 201 CREATED

Failure

Missing, invalid or expired token:

HTTP/1.1 401 UNAUTHORIZED

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Invalid role:

HTTP/1.1 404 NOT FOUND

Inconsistent data (Stormpath groups / Users):

HTTP/1.1 409 CONFLICT

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""