Update User Email
On this page
GraphQL endpoint: /user
Updates the types and visibility settings of an existing user email. The email address itself cannot be changed, only its metadata like types and visibility.
Query
mutation (
$id: ID!
$types: [UserEmailType!]
$visibility: [UserVisibilityType!]
) {
updateUserEmail (
id: $id
types: $types
visibility: $visibility
) {
id
email
types
visibility
}
}
Variables
{
"id": "00000000-0000-4000-8000-000000000001",
"types": [
"HOME"
],
"visibility": [
"FAMILY"
]
}
Response
{
"data": {
"updateUserEmail": {
"email": "test1@email.com",
"id": "00000000-0000-4000-8000-000000000001",
"types": [
"HOME"
],
"visibility": [
"FAMILY"
]
}
}
}