API Stability Long-Term

The updateOpsGenieAction() GraphQL mutation is used to update an OpsGenie action in LogScale.

For more information on OpsGenie actions, see the Action Type: OpsGenie documentation page. You may also want to look at the Actions page for related information.

Syntax

Below is the syntax for the updateOpsGenieAction() mutation field:

graphql
updateOpsGenieAction(
     input: UpdateOpsGenieAction!
   ): OpsGenieAction!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  updateOpsGenieAction( input:
    { viewName: "humio",
      id: "abc123",
      name: "act-now",
      apiUrl: "https://opsgenie.company.com",
      genieKey: "def456",
      useProxy: false
    }
  )
 { id }
}
Example Responses
Show:
json
{
  "data": {
    "updateOpsGenieAction": {
      "id": "abc123"
    }
  }
}

Given Datatypes

For UpdateOpsGenieAction, there are a few parameters that may be given. Below is a list of them along with a description of each:

Table: UpdateOpsGenieAction

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 23, 2024
apiUrlstringyes Long-TermThe OpsGenie webhook URL where to send the request.
genieKeystringyes Long-TermThe key to authenticate with OpsGenie.
idstringyes Long-TermThe unique identifier of the action.
namestringyes Long-TermThe name of the action.
useProxybooleanyes Long-TermDefines whether the action should use the configured proxy to make web requests.
viewNamestringyes Long-TermThe name of the view of the action.

Returned Datatypes

The returned datatype OpsGenieAction has several parameters. Below is a list of them along with a description of each:

Table: OpsGenieAction

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 26, 2025
allowedActions[AssetAction]yes PreviewThe allowed asset actions. See AssetAction. This is a preview and subject to change.
apiUrlstringyes Long-TermOpsGenie webhook url to send the request to.
displayNamestringyes Long-TermThe display name of the action.
genieKeystringyes Long-TermKey to authenticate with OpsGenie.
idstringyes Long-TermThe unique identifier of the action.
isAllowedToRunbooleanyes Long-TermWhether the action is enabled.
namestringyes Long-TermThe name of the action.
packagePackageInstallation  Long-TermThe package, if any, of which the action is part. See PackageInstallation.
requiresOrganizationOwnedQueriesPermissionToEditbooleanyes Long-TermTrue if this action is used by triggers, where the query is run by the organization. The OrganizationOwnedQueries permission is required to edit the action.
resourcestringyes Short-TermThe resource identifier for the action.
useProxybooleanyes Long-TermDefines whether the action should use the configured proxy to make web requests.
yamlTemplateyamlyes Long-TermA template that can be used to recreate the action.