Policies and findings · GraphQL mutation

policyRulesRemove mutation

Deletes the identified policy rules so they are no longer listed or evaluated. Each rule is deleted on its own, so a request can partly succeed: when some rules fail the request returns an error, but the other rules are still deleted. The payload echoes the requested ids. Findings and issues the rules already produced are kept.

Response

Returns a RulesRemovePayload!

Arguments

Name Description
orgId - OrganizationId! The Organization identifier.
input - RulesRemoveInput! Identifies the rules to remove.

Example

Query

mutation policyRulesRemove(
  $orgId: OrganizationId!,
  $input: RulesRemoveInput!
) {
  policyRulesRemove(
    orgId: $orgId,
    input: $input
  ) {
    ruleIds
  }
}

Variables

{
  "orgId": "615f3b3b28284380e28a7342",
  "input": RulesRemoveInput
}

Response

{"data": {"policyRulesRemove": {"ruleIds": [4]}}}