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

TNID API documentation Company Email Update Company Email

Update Company Email

On this page

GraphQL endpoint: /company

Update the types and visibility settings of an existing company email. The email address itself cannot be changed, only its metadata like types and visibility.

Query

mutation (
  $id: ID!
  $types: [CompanyEmailType!]
  $visibility: [CompanyVisibilityType!]
) {
  updateCompanyEmail (
    id: $id
    types: $types
    visibility: $visibility
  ) {
    id
    email
    types
    visibility
  }
}

Variables

{
  "id": "00000000-0000-4000-8000-000000000001",
  "types": [
    "SUPPORT"
  ],
  "visibility": [
    "PARTNER",
    "CUSTOMER"
  ]
}

Response

{
  "data": {
    "updateCompanyEmail": {
      "email": "test1@email.com",
      "id": "00000000-0000-4000-8000-000000000001",
      "types": [
        "SUPPORT"
      ],
      "visibility": [
        "PARTNER",
        "CUSTOMER"
      ]
    }
  }
}