Skip to main content
PATCH
/
api
/
auth
/
email
Update Current User Email
curl --request PATCH \
  --url https://api.example.com/api/auth/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "user": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string
required

Response

Successful Response

success
boolean
required
message
string
required
user
User · object