Update user
Updates an existing user's profile information.
Updates an existing user's profile information.
Preferred API authentication. Use a JWT with the api audience.
In: header
Path Parameters
The 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).
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The 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.
The new role to assign to the user. ADMIN users have all permissions, while USER role has limited permissions.
The new email address for the user. Must be a valid email format and unique across all users. Maximum length is 255 characters.
emailResponse Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://127.0.0.1:38765/v1/users/:id" \ -H "Content-Type: application/json" \ -d '{ "username": "string", "role": {}, "email": "user@example.com" }'{}{ "code": 0, "grpc-code": "string", "message": "string", "stack-trace": "string", "details": [ {} ]}{ "code": 0, "grpc-code": "string", "message": "string", "stack-trace": "string", "details": [ {} ]}{ "code": 0, "grpc-code": "string", "message": "string", "stack-trace": "string", "details": [ {} ]}How is this page?