Skip to content

Instantly share code, notes, and snippets.

@shairyar
Created February 12, 2024 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shairyar/67daf4249ff1c67985b3446e52c823de to your computer and use it in GitHub Desktop.
Save shairyar/67daf4249ff1c67985b3446e52c823de to your computer and use it in GitHub Desktop.
Create an application in AppSignal using GraphQL API
mutation createAppMutation($organizationSlug: String!, $name: String!, $environment: String!) {
createApp(
organizationSlug: $organizationSlug
name: $name
environment: $environment
) {
...FrontendApp
}
}
fragment FrontendApp on App {
id
name
createdAt
frontendApiKey
environment
exceptionIncidents(limit: 1, namespaces: ["frontend"]) {
id
}
organization {
id
slug
}
}
@shairyar
Copy link
Author

shairyar commented Feb 12, 2024

Vars

{
  "organizationSlug": "YOUR-APPSIGNAL-ORG-ACCOUNT-SLUG",
  "name": "NAME-OF-YOUR-APPLICATION",
  "environment": "ENVIRONMENT-NAME-(STAGING/PRODUCTION/DEMO)"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment