TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation User Email Set Primary User Email

Set Primary User Email

On this page

GraphQL endpoint: /user

Sets a verified email address as the primary email for the user. The primary email is used as the main contact email for the account. Only one email can be primary at a time, and only verified emails can be set as primary.

Query

mutation (
  $id: ID!
) {
  setPrimaryUserEmail (
    id: $id
  ) {
    id
    email
    types
    primary
  }
}

Variables

{
  "id": "00000000-0000-4000-8000-000000000001"
}

Response

{
  "data": {
    "setPrimaryUserEmail": {
      "email": "test1@email.com",
      "id": "00000000-0000-4000-8000-000000000001",
      "primary": true,
      "types": [
        "OTHER"
      ]
    }
  }
}