Skip to main content
PATCH
Update current user

Authorizations

Authorization
string
header
required

Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of update_current_user.

first_name
string
Required string length: 1 - 100
last_name
string | null
Maximum string length: 100
avatar_url
string | null
Maximum string length: 1024
phone
string | null
Maximum string length: 32
timezone
string | null

IANA tz, e.g. "Europe/Riga".

country
string | null

ISO 3166-1 alpha-2.

Required string length: 2
config
object

Response

update success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
update
item
object
required
updated_fields
string[]
required
previous_values
object
required
meta
object
required