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

TNID API documentation User Telephone number Set Primary User Telephone Number

Set Primary User Telephone Number

On this page

GraphQL endpoint: /user

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

Query

mutation (
  $id: ID!
) {
  setPrimaryUserTelephoneNumber (
    id: $id
  ) {
    id
    number
    types
    primary
    status
  }
}

Variables

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

Response

{
  "data": {
    "setPrimaryUserTelephoneNumber": {
      "id": "00000000-0000-4000-8000-000000000001",
      "number": "1",
      "primary": true,
      "status": "VERIFIED",
      "types": [
        "OTHER"
      ]
    }
  }
}