Skip to content
gist.link ↗

saveCallFlow

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

Create (no uuid) or update (uuid) a call flow. Steps are validated.

phone:mutation:saveCallFlow

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 {
saveCallFlow(input: SaveCallFlowInput!): CallFlow!
}
Argument Type Required Description
input SaveCallFlowInput! Yes —

CallFlow! — 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 SaveCallFlow($input: SaveCallFlowInput!) { saveCallFlow(input: $input) { uuid name version steps createdAt updatedAt } }",
"variables": {
"input": {
"name": "Example",
"steps": {}
}
}
}
JSON