Update a user

PATCH /Api/Users/{id}

Requires verified email; Requires one of the following permissions: Users.UpdateUser; Requires the following features to be enabled: Users

Path parameters

  • id string(uuid) Required

Body

  • name string Required

    Minimum length is 1, maximum length is 255.

  • email string(email) Required

    Minimum length is 1, maximum length is 255.

  • userGroups array[integer(int32)] Required
  • Additional properties are NOT allowed

Responses

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
    • Additional properties:
  • 204

    No Content

  • 401

    Unauthorized

  • 403

    Forbidden

curl \
 -X PATCH https://app.lovassy.hu/Api/Users/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","email":"hello@example.com","userGroups":[42]}'
curl \
 -X PATCH https://app.lovassy.hu/Api/Users/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X PATCH https://app.lovassy.hu/Api/Users/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/*+json"
Request examples
{
  "name": "string",
  "email": "hello@example.com",
  "userGroups": [
    42
  ]
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}