users

Update current user

Edit the signed-in account: first_name, last_name, avatar_url, phone, timezone, country and a shallow config patch (keys merge, the rest stays). Email, the default team and erasure keep their own /auth flows; sids are read-only. At least one field. An API key has no profile (403 not_a_user_actor). The avatar FILE goes through the app upload, not here: pass a URL, or null to remove it.

Contract:

  • MCP tool update_current_user, registry package mcp.id/users, mount id.identity.
  • Operation update, response envelope update.
  • Flags: none.
patch/api/users/current

Request

  • Base URL
    https://beta.getsales.io/id/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Request body

first_namestring

Given name, 1..120 chars.

last_namestring nullable

Family name, up to 120 chars; null clears it.

avatar_urlstring uri nullable

An absolute URL of the picture, up to 2048 chars; null removes the avatar.

phonestring nullable

Up to 40 chars; null clears it.

timezonestring nullable

IANA zone, e.g. Europe/Riga; null clears it.

countrystring nullable

ISO 3166-1 alpha-2; null clears it.

Response

update success envelope.

successtrue required
operation'update' required
updated_fieldsstring[] required
previous_valuesobject required
kept_fieldsstring[]

The fields this write did not change because the person's own value stands on them (stamped person); read the item for what landed.

Changes

No recorded changes to this operation across all 1 revision of this API.