Policies and findings · GraphQL mutation

policyRulesImport mutation

Loads the group's export file from storage and updates the group's rules to match it: rules are added, updated, or deleted as needed.

Response

Returns a RulesImportPayload!

Arguments

Name Description
orgId - OrganizationId! The Organization identifier.
input - RulesImportInput! Selects which group's rule export file to load.

Example

Query

mutation policyRulesImport(
  $orgId: OrganizationId!,
  $input: RulesImportInput!
) {
  policyRulesImport(
    orgId: $orgId,
    input: $input
  ) {
    group
  }
}

Variables

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

Response

{
  "data": {
    "policyRulesImport": {"group": "xyz789"}
  }
}