Skip to content
gist.link ↗

updateNumber

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

The updateNumber mutation on the Phone API.

phone:mutation:updateNumber

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 {
updateNumber(uuid: ID!, input: UpdateNumberInput!): PhoneNumber!
}
Argument Type Required Description
uuid ID! Yes —
input UpdateNumberInput! Yes —

PhoneNumber! — 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 UpdateNumber($uuid: ID!, $input: UpdateNumberInput!) { updateNumber(uuid: $uuid, input: $input) { uuid status currency } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"input": {
"friendlyName": "Example",
"assigneeIds": [
"01a01234-abcd-7000-9000-0123456789ab"
]
}
}
}
JSON