---
title: policyRulesImport mutation | Wartiva GraphQL API
description: 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.
url: https://wartiva.com/api-docs/mutations/policy-rules-import.html
updated: 2026-10-07
---

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!`](https://wartiva.com/api-docs/types/rules-import-payload.html)

## Arguments

| Name | Description |
|---|---|
| `orgId` - [`OrganizationId!`](https://wartiva.com/api-docs/types/organization-id.html) | The Organization identifier. |
| `input` - [`RulesImportInput!`](https://wartiva.com/api-docs/types/rules-import-input.html) | Selects which group's rule export file to load. |

## Example

### Query

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

```

### Variables

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

```

### Response

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

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
