Skip to content
Dashboard
Theme
Theme

Update an end user

PATCH /v1/users/{user}: Update an end user.

View Markdown

PATCH /v1/users/{user}

Scope
users:write
Auth
Secret key (sk_…)
Since
1.0
  • user string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • email_verified boolean

  • first_name string or null

    max length 200

  • last_name string or null

    max length 200

  • locale string or null

    max length 35

  • external_id string or null

    max length 256

  • metadata Metadata

  • state string

    one of active, blocked

Errors share one shape; see the error code catalogue.

curl -X PATCH \
"https://api.ohauthcat.com/v1/users/usr_01J9Z3K5V7W8X9Y0Z1A2B3C4D5" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email_verified": true,
"first_name": "Jane",
"last_name": "Doe",
"locale": "en-US",
"external_id": "acme-123",
"metadata": {
"plan": "enterprise"
},
"state": "active"
}'
Response 200
{
"id": "usr_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "user",
"email": "jane@acme.com",
"email_verified": true,
"first_name": "Jane",
"last_name": "Doe",
"locale": "en-US",
"external_id": "acme-123",
"metadata": {
"plan": "enterprise"
},
"state": "active",
"last_sign_in_at": "2026-01-15T09:30:00Z",
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z"
}