Create a new User

POST /v1/users
application/json

Body

New User Params

  • user object

    A user

    Hide user attributes Show user attributes object
    • address object

      An address

      Hide address attributes Show address attributes object
      • city string

        City

      • country string

        Country

      • houseNumber string

        House number

      • street string

        Street

      • zipCode string

        ZIP code

    • email string Required

      User email

    • firstName string Required

      User first name

    • groups array[string] Required

      Permissions Groups

    • id integer

      User ID

    • insertedAt string(date-time)

      Creation timestamp

    • lastName string Required

      User last name

    • locations array[string]

      Locations

    • updatedAt string(date-time)

      Update timestamp

Responses

  • 200 application/json

    User response

    Hide response attribute Show response attribute object
    • data object

      A user

      Hide data attributes Show data attributes object
      • address object

        An address

        Hide address attributes Show address attributes object
        • city string

          City

        • country string

          Country

        • houseNumber string

          House number

        • street string

          Street

        • zipCode string

          ZIP code

      • email string Required

        User email

      • firstName string Required

        User first name

      • groups array[string] Required

        Permissions Groups

      • id integer

        User ID

      • insertedAt string(date-time)

        Creation timestamp

      • lastName string Required

        User last name

      • locations array[string]

        Locations

      • updatedAt string(date-time)

        Update timestamp

POST /v1/users
curl \
 --request POST 'https://api.azav-pilot.de/v1/users' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"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"
  }
}