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

TNID API documentation Company Telephone number Create Company Telephone Number

Create Company Telephone Number

On this page

GraphQL endpoint: /company

Create a new telephone number for the company. The telephone number will be added to the company's profile with the specified types and visibility settings.

Query

mutation (
  $number: String!
  $countryCode: String!
  $types: [CompanyTelephoneNumberType!]
  $visibility: [CompanyVisibilityType!]
) {
  createCompanyTelephoneNumber (
    number: $number
    countryCode: $countryCode
    types: $types
    visibility: $visibility
  ) {
    id
    number
    types
    visibility
  }
}

Variables

{
  "countryCode": "1",
  "number": "1",
  "types": [
    "SUPPORT"
  ],
  "visibility": [
    "PARTNER",
    "CUSTOMER"
  ]
}

Response

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