Update My Email​
Change the email address of the authenticated user. A verification email will be sent to the given email address.
application/json
application/grpc
application/grpc-web+proto
Request Body required
email string required
Request Body required
email string required
Request Body required
email string required
Responses
- 200
- default
A successful response.
application/json
application/grpc
application/grpc-web+proto
Schema
Example (from schema)
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-05-24T19:39:26.516Z",
"changeDate": "2024-05-24T19:39:26.516Z",
"resourceOwner": "69629023906488334"
}
}
Schema
Example (from schema)
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-05-24T19:39:26.516Z",
"changeDate": "2024-05-24T19:39:26.516Z",
"resourceOwner": "69629023906488334"
}
}
Schema
Example (from schema)
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-05-24T19:39:26.516Z",
"changeDate": "2024-05-24T19:39:26.516Z",
"resourceOwner": "69629023906488334"
}
}
An unexpected error response.
application/json
application/grpc
application/grpc-web+proto
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
PUT /users/me/email
Authorization
name: OAuth2type: oauth2scopes:openid
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid" } } }
Request
Request
curl / cURL
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'
python / requests
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'
go / native
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'
nodejs / axios
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'
ruby / Net::HTTP
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'
csharp / RestSharp
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'
php / cURL
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'
java / OkHttp
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'
powershell / RestMethod
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/email' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "gigi@zitadel.com"
}'