Update user
Updates an existing user's profile information.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
id*stringThe unique identifier (UUID) of the user to update. Cannot be the ID of the requesting user (cannot update self via this method). Cannot be the root user ID (00000000-0000-0000-0000-000000000000).
uuidapplication/json- body
Request message for updating an existing user's profile information. All fields except ID will be updated to the provided values.
username*stringThe new username for the user. Must be lowercase, between 3 and 32 characters. Must begin with an alphanumeric character, followed by alphanumeric characters or dashes, and end with an alphanumeric character. Must be unique across all users.
role*stringThe new role to assign to the user. ADMIN users have all permissions, while USER role has limited permissions.
"ADMIN""USER"email*stringThe new email address for the user. Must be a valid email format and unique across all users. Maximum length is 255 characters.
emailResponse message returned after successfully updating a user.
application/json- response
Response message returned after successfully updating a user. Empty response indicates success.
curl -X PATCH 'http://127.0.0.1:38765/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Content-Type: application/json' \
-d '{
"username": "string",
"role": "ADMIN",
"email": "user@example.com"
}'{}Was this page helpful?
