Skip to content
gist.link ↗

setVoipEndpointRing

Mutation Phone API — POST https://phone.api.gist.link/graphql

The setVoipEndpointRing mutation on the Phone API.

phone:mutation:setVoipEndpointRing

The calling IAM key must hold this permission (or a wildcard that covers it: phone:mutation:* or phone:*) and the access token must have been minted with audience=phone. See Permissions.

type Mutation {
setVoipEndpointRing(uuid: ID!, ringEnabled: Boolean!): VoipEndpoint!
}
Argument Type Required Description
uuid ID! Yes —
ringEnabled Boolean! Yes —

VoipEndpoint! — see the Phone types reference.

Terminal window
curl https://phone.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SetVoipEndpointRing($uuid: ID!, $ringEnabled: Boolean!) { setVoipEndpointRing(uuid: $uuid, ringEnabled: $ringEnabled) { uuid kind label sipDomain sipUsername ringEnabled createdAt } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"ringEnabled": true
}
}
JSON