Update user email properties
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"
}
JWT Bearer token authentication using the Authorization header
(i64 formatted as string)
(i64 formatted as string)
Email updated successfully
The response is of type object
.
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"
}