Skip to main content

PATCH /v1/users/me

Update the caller's profile fields. Sparse: only fields set to a value are applied. To clear a field, send an explicit empty string.

::: tip Auth Required: cookie or Bearer. :::

Request

PATCH /v1/users/me

HeaderRequiredNotes
Cookie: identsphere_at=... OR Authorization: Bearer ...yes
Content-Type: application/jsonyes

Body

{
"display_name": "Alice A.",
"job_title": "Staff Engineer",
"phone_number": null,
"bio": "Likes Rust and good coffee.",
"preferences": { "theme": "dark", "compact_sidebar": true }
}
FieldTypeNotes
display_namestring | nullMax 200 chars. Empty string clears.
job_titlestring | nullMax 200 chars. Empty string clears.
phone_numberstring | nullMax 50 chars. Empty string clears.
biostring | nullMax 2000 chars. Empty string clears.
preferencesobject | nullFree-form JSON. Replaces (not merges).

Email is NOT mutable through this endpoint — implement an email-change flow separately if you need it.

Response

200 OK

The updated profile, in the same shape as GET /v1/users/me.

Error responses

StatusCodeWhen
400invalid_inputA field failed length validation.
401authentication_requiredNo valid auth credential.
404not_foundUser no longer exists.

Notes

  • updated_at is bumped.
  • The preferences JSON is opaque to the SDK; you choose the shape.