Update other profile
Update other profile for the user, only the fields that are passed in will be updated, to update the address, the user must have the address scope.
Body Required
-
familyName string
The new family name for the user.
-
givenName string
The new given name for the user.
-
middleName string
The new middle name for the user.
-
nickname string
The new nickname for the user.
-
preferredUsername string
The new preferred username for the user.
-
profile string
The new profile for the user.
-
website string
The new website for the user.
-
gender string
The new gender for the user.
-
birthdate string
The new birthdate for the user.
-
zoneinfo string
The new zoneinfo for the user.
-
locale string
The new locale for the user.
-
address object
The new address for the user.
Additional properties are allowed.
PATCH /api/my-account/profile
curl \
-X PATCH https://[tenant_id].logto.app/api/my-account/profile \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"familyName":"string","givenName":"string","middleName":"string","nickname":"string","preferredUsername":"string","profile":"string","website":"string","gender":"string","birthdate":"string","zoneinfo":"string","locale":"string","address":{"formatted":"string","streetAddress":"string","locality":"string","region":"string","postalCode":"string","country":"string"}}'
Request examples
{
"familyName": "string",
"givenName": "string",
"middleName": "string",
"nickname": "string",
"preferredUsername": "string",
"profile": "string",
"website": "string",
"gender": "string",
"birthdate": "string",
"zoneinfo": "string",
"locale": "string",
"address": {
"formatted": "string",
"streetAddress": "string",
"locality": "string",
"region": "string",
"postalCode": "string",
"country": "string"
}
}
Response examples (200)
{
"familyName": "string",
"givenName": "string",
"middleName": "string",
"nickname": "string",
"preferredUsername": "string",
"profile": "string",
"website": "string",
"gender": "string",
"birthdate": "string",
"zoneinfo": "string",
"locale": "string",
"address": {
"formatted": "string",
"streetAddress": "string",
"locality": "string",
"region": "string",
"postalCode": "string",
"country": "string"
}
}