PATCH
/
users
/
{user_id}
/
emails
/
{email_id}
Update User Email
curl --request PATCH \
  --url https://api.wacht.dev/users/{user_id}/emails/{email_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "is_primary": true,
  "is_verified": true
}'
{
  "id": "<string>",
  "email": "jsmith@example.com",
  "is_primary": true,
  "is_verified": true,
  "verified_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Path Parameters

user_id
string
required

(i64 formatted as string)

email_id
string
required

(i64 formatted as string)

Body

application/json

Response

Email updated successfully

The response is of type object.