Partially update a user

Updates specific fields of a user. This endpoint is used for partial updates.

SecuritybearerAuth
Request
path Parameters
userId
required
integer <int64>

The ID of the user to update.

Request Body schema: application/json
required

Include the fields you want to update in the request body. Fields not included will remain unchanged.

firstname
string

The first name of the user.

lastname
string

The last name of the user.

email
string <email>

The email address of the user.

password
string

The current password of the user. If password is shown, then password1 and password2 are required.

password1
string

The new password for the user.

password2
string

Confirmation of the new password.

tfa_type
string

The type of two-factor authentication.

Enum: "email" "google"
additionalProperties
boolean
Default: false
Responses
204

User updated successfully.

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

503

Service Unavailable

patch/users/{userId}
Request samples
application/json
{
  • "email": "jane.diamond@example.com"
}
Response samples
application/json
{
  • "errors": [
    • "string"
    ]
}