Skip to content
gist.link ↗

changeAppPlan

Mutation Developers API — POST https://developers.api.gist.link/graphql

Switch the org’s plan for an installed app (takes effect on the next invoice). Requires an org admin.

developers:mutation:changeAppPlan

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

type Mutation {
changeAppPlan(key: String!, planKey: String!): AppInstall!
}
Argument Type Required Description
key String! Yes —
planKey String! Yes —

AppInstall! — see the Developers types reference.

Terminal window
curl https://developers.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation ChangeAppPlan($key: String!, $planKey: String!) { changeAppPlan(key: $key, planKey: $planKey) { uuid currency status } }",
"variables": {
"key": "example",
"planKey": "example"
}
}
JSON