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
-
The new family name for the user.
-
The new given name for the user.
-
The new middle name for the user.
-
The new nickname for the user.
-
The new preferred username for the user.
-
The new profile for the user.
-
The new website for the user.
-
The new gender for the user.
-
The new birthdate for the user.
-
The new zoneinfo for the user.
-
The new locale for the user.
-
The new address for the user.
PATCH
/api/my-account/profile
curl \
--request PATCH 'https://[tenant_id].logto.app/api/my-account/profile' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"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"
}
}