Skip to content
gist.link ↗

upsertRegisteredApp

Mutation Dashboard API — POST https://dashboard.api.gist.link/graphql

Create or update a registered app definition. ROLE_ADMIN.

dashboard:mutation:upsertRegisteredApp

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

type Mutation {
upsertRegisteredApp(input: UpsertRegisteredAppInput!): RegisteredApp!
}
Argument Type Required Description
input UpsertRegisteredAppInput! Yes —

RegisteredApp! — see the Dashboard types reference.

Terminal window
curl https://dashboard.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpsertRegisteredApp($input: UpsertRegisteredAppInput!) { upsertRegisteredApp(input: $input) { id uuid key name created_at updated_at } }",
"variables": {
"input": {
"key": "example",
"name": "Example",
"icon_url": "example",
"target_url": "example"
}
}
}
JSON