Users

Update user information (admin only)

Changed on
patch/users/{user_id}

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

user_idinteger required

User ID

Request body

emailstring nullable
namestring nullable

Deprecated: the old name of username, still accepted. Sending both with different values is refused.

usernamestring nullable

The new username, as in CreateUserRequest.

Example request

{
  "email": "john.doe@example.com",
  "name": "john.doe",
  "username": "john.doe"
}

Response

User updated successfully

Changes

    • breaking

      the roles/items/created_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the roles/items/updated_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the user/created_at response's property type changed from integer to string, and format from int64 to date-time for status

    2 more changes in this revision