Skip to main content

PATCH /api/v1/users/

Modifies user account information including profile details, metadata, and external ID. Use this endpoint to update a user’s personal information, contact details, or custom metadata.

Request

Path Parameters

id
string
required
System-generated user ID. Must start with ‘usr_’ and be 19-25 characters long.
usr_123

Query Parameters

external_id
string
Your application’s unique identifier for this user.
ext_12345a67b89c

Body Parameters

user_profile
object
User’s personal information to update.
metadata
object
Custom key-value pairs for storing additional user context.
{
  "department": "sales",
  "location": "nyc-office"
}

Response

user
object
The modified user object with updated timestamps.

Examples

    Error Responses

    200
    success
    User updated successfully
    404
    error
    User not found

    Notes

    • Fields like user ID, email address, environment ID, and creation time cannot be modified
    • Only specified fields will be updated; other fields remain unchanged
    • The update_time field is automatically updated by the server

    Build docs developers (and LLMs) love