Skip to main content

Update My Profile

Change the profile information of the authenticated user. This includes information like first name, last name, language, etc.

Request Body required
  • firstName string required

    Possible values: non-empty and <= 200 characters

  • lastName string required

    Possible values: non-empty and <= 200 characters

  • nickName string

    Possible values: non-empty and <= 200 characters

  • displayName string required

    Possible values: non-empty and <= 200 characters

  • preferredLanguage string

    Possible values: <= 10 characters

  • gender string

    Possible values: [GENDER_UNSPECIFIED, GENDER_FEMALE, GENDER_MALE, GENDER_DIVERSE]

    Default value: GENDER_UNSPECIFIED

Responses

A successful response.


Schema
  • details object
  • sequence uint64

    on read: the sequence of the last event reduced by the projection

    on manipulation: the timestamp of the event(s) added by the manipulation

  • creationDate date-time

    on read: the timestamp of the first event of the object

    on create: the timestamp of the event(s) added by the manipulation

  • changeDate date-time

    on read: the timestamp of the last event reduced by the projection

    on manipulation: the

  • resourceOwner resource_owner is the organization an object belongs to
PUT /users/me/profile

Authorization

type: oauth2flow: authorizationCodescopes: openid

Request

Base URL
https://$ZITADEL_DOMAIN/auth/v1
Bearer Token
Content-Type
Body required
{
"firstName": "Minnie",
"lastName": "Mouse",
"nickName": "Minnie",
"displayName": "Minnie Mouse",
"preferredLanguage": "en",
"gender": "GENDER_UNSPECIFIED"
}
Accept
curl -L -X PUT 'https://$ZITADEL_DOMAIN/auth/v1/users/me/profile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"firstName": "Minnie",
"lastName": "Mouse",
"nickName": "Minnie",
"displayName": "Minnie Mouse",
"preferredLanguage": "en",
"gender": "GENDER_UNSPECIFIED"
}'