API Stability Long-Term

The updateActionSecurityPolicies() GraphQL mutation may be used to update the action security policies for the organization.

Syntax

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

graphql
updateActionSecurityPolicies(
      input: ActionSecurityPoliciesInput!
   ): Organization!

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

Show:
graphql
mutation {
  updateActionSecurityPolicies( input:
    {
      emailActionEnabled: true,
      repoActionEnabled: false,
      opsGenieActionEnabled: false,
      pagerDutyActionEnabled: false,
      slackSingleChannelActionEnabled: true,
      slackMultiChannelActionEnabled: false,
      uploadFileActionEnabled: false,
      victorOpsActionEnabled: false,
      webhookActionEnabled: true
    }
  )
  { id }
}
Example Responses
Show:
json
{
  "data": {
    "updateActionSecurityPolicies": {
      "id": "SINGLE_ORGANIZATION_ID"
    }
  }
}

Given Datatypes

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

Table: ActionSecurityPoliciesInput

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 17, 2024
emailActionEnabledbooleanyes  Whether email actions should be enabled.
emailActionRecipientAllowList[string]yes  Allow list of glob patterns restricting which recipient can be set on email actions. For example, *@organization.com. Empty list means no recipients allowed whereas not setting it means all allowed.
opsGenieActionEnabledbooleanyes  Whether OpsGenie actions should be enabled.
pagerDutyActionEnabledbooleanyes  Whether PagerDuty actions should be enabled.
repoActionEnabledbooleanyes  Whether repository actions should be enabled.
slackMultiChannelActionEnabledbooleanyes  Whether multi channel Slack actions should be enabled.
slackSingleChannelActionEnabledbooleanyes  Whether single channel Slack actions should be enabled.
uploadFileActionEnabledbooleanyes  Whether upload file actions should be enabled.
victorOpsActionEnabledbooleanyes  Whether VictorOps actions should be enabled.
webhookActionEnabledbooleanyes  Whether webhook actions should be enabled.
webhookActionUrlAllowList[string]yes  Allow list of glob patterns restricting which URL can be set on webhook actions. For example, *.organization.com. Empty means no recipients allowed whereas null means all.

Returned Datatypes

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

Table: Organization

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 27, 2024
cidstring  Short-TermThe CID corresponding to the organization.
configsOrganizationConfigsyes Short-TermOrganization configurations and settings. See OrganizationDetails.
createdAtlong  Short-TermDate organization was created.
defaultCachePolicyCachePolicy  PreviewThe default cache policy of the organization. See CachePolicy. This is a preview and subject to change.
descriptionstring  Short-TermThe description for the Organization. Can be null.
detailsOrganizationDetailsyes Short-TermAny additional details related to the organization. See OrganizationDetails.
externalGroupSynchronizationbooleanyes Short-TermWhether there is group synchronization.
externalPermissionsbooleanyes Short-TermWhether permissions are managed externally.
idstringyes Short-TermThe unique id for the Organization.
ingestUrlstring  Short-TermThe ingest URL for the organization.
isActionAllowedmultipleyes Short-TermCheck if user has a permission in organization. The datatype consists of (action: OrganizationAction): boolean. For OrganizationAction, give the action to check if a user is allowed to perform on the organization. See OrganizationAction.
limits[Limit]yes Short-TermLimits assigned to the organization. See Limit.
limitsV2[LimitV2]yes Short-TermLimits assigned to the organization. See LimitV2.
namestringyes Short-TermThe name for the Organization.
publicUrlstring  Short-TermThe public URL for the organization.
readonlyDashboardIPFilterstring  Short-TermIP filter for readonly dashboard links.
searchDomains[SearchDomain]yes Short-TermSearch domains within the organization. See SearchDomain.
statsOrganizationStatsyes Short-TermStatistics of the organization. See OrganizationStats.
trialStartedAtlong  Short-TermDate organization's trial started.