Documentation Index
Fetch the complete documentation index at: https://mintlify.com/zitadel/zitadel/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
PATCH /v2/users/{user_id}
Description
Partially update an existing user. You can change the user’s profile, email, phone, and password. If you change the email or phone, you can specify how the ownership should be verified.
Required Permission
Path Parameters
The unique identifier of the user to update.
Request Body
New username for the user. Must be unique within the organization.
Profile information to update (for human users).Updated preferred language.
Email information to update.Whether to mark the email as verified.
Return the verification code instead of sending it via email.
Phone information to update.New phone number in E.164 format.
Whether to mark the phone as verified.
Return the verification code instead of sending it via SMS.
Password information to update.New password for the user.
Require the user to change the password on next login.
Response
Metadata about the update.Sequence number of the change.
Timestamp of when the user was updated.
Organization ID that owns the user.
Email verification code if requested.
Phone verification code if requested.
Example Request
curl -X PATCH https://your-domain.zitadel.cloud/v2/users/d654e6ba-70a3-48ef-a95d-37c8d8a7901a \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"profile": {
"displayName": "Minnie M. Mouse",
"preferredLanguage": "de"
},
"email": {
"email": "minnie.mouse@example.com",
"isVerified": false
}
}'
Example Response
{
"details": {
"sequence": "1235",
"changeDate": "2024-03-15T11:45:00Z",
"resourceOwner": "69629026806489455"
}
}
Error Responses
404 Not Found - User ID does not exist
409 Conflict - Username already taken
400 Bad Request - Invalid request data
403 Forbidden - Insufficient permissions