Skip to content
gist.link ↗

updateApplication

Mutation Deploy API — POST https://deploy.api.gist.link/graphql

Update an application’s config. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:updateApplication

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

type Mutation {
updateApplication(id: Int!, input: UpdateApplicationInput!): Application!
}
Argument Type Required Description
id Int! Yes —
input UpdateApplicationInput! Yes —

Application! — see the Deploy types reference.

Terminal window
curl https://deploy.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpdateApplication($id: Int!, $input: UpdateApplicationInput!) { updateApplication(id: $id, input: $input) { id uuid name kind created_at updated_at } }",
"variables": {
"id": 10,
"input": {
"name": "Example",
"kind": "example",
"source_config": {}
}
}
}
JSON