Create a new User

POST /v1/users
application/json

Body

New User Params

Responses

  • 200 application/json

    User response

    Hide response attribute Show response attribute object
POST /v1/users
curl \
 -X POST http://localhost:4000/v1/users \
 -H "Content-Type: application/json" \
 -d '{"user":{"id":"\u003cuuid v4\u003e","email":"dozent@traeger.de","roles":["lecturer"],"lastName":"Dozentos","firstName":"Daniel"}}'
Request examples
{
  "user": {
    "id": "<uuid v4>",
    "email": "dozent@traeger.de",
    "roles": [
      "lecturer"
    ],
    "lastName": "Dozentos",
    "firstName": "Daniel"
  }
}
Response examples (200)
{
  "data": {
    "id": "<uuid v4>",
    "email": "dozent@traeger.de",
    "roles": [
      "lecturer"
    ],
    "lastName": "Dozentos",
    "firstName": "Daniel"
  }
}