---
title: "Create Backup Policy Rule"
method: POST
path: "/organizations/{organization_id}/policies/{policy_id}/rules"
tags: ["BackupPolicies"]
---

# Create Backup Policy Rule

`POST /organizations/{organization_id}/policies/{policy_id}/rules`

## Request

- Base URL: `//apis.druva.com/awsnative` (relative, and the document’s source URL is not known)
- URL: `//apis.druva.com/awsnative/organizations/{organization_id}/policies/{policy_id}/rules`
- Auth: API key in header `Authorization`

Create Backup Policy Rules for the specified policy

## Path parameters

- `organization_id` string, required
- `policy_id` string, required

## Request body

- PostOrganizationsPoliciesRulesRequest
  - `exclude` boolean
  - `all_accounts` boolean
  - `all_regions` boolean
  - `all_resource_types` boolean
  - `regions` string[]
  - `accounts` object[]
    - `account_id` string
  - `resource_types` string[]
  - `resources` object[]
    - `account_id` string
    - `region` string
    - `resource_id` string
    - `type` string
  - `rule_type` 'tags' | 'resource_id' | 'location'
  - `policy_id` string

## Response `200`

200 response

- PostOrganizationsPoliciesRulesResponse
  - `regions` string[]
  - `resource_types` string[]
  - `id` integer
  - `exclude` boolean
  - `all_accounts` boolean
  - `all_regions` boolean
  - `all_resource_types` boolean
  - `accounts` object[]
    - `rule_id` integer
    - `account_id` string
  - `resources` object[]
    - `rule_id` integer
    - `account_id` string
    - `region` string
    - `resource_id` string
    - `type` string
  - `rule_type` string
  - `policy_id` string

## Other responses

- `201`: 201 response
- `401`: 401 response
- `403`: 403 response
- `404`: 404 response

---

[API](https://skmtc.dev/druva/apis/aws-native.md) - [All operations](https://skmtc.dev/druva/apis/aws-native/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/aws-native/revisions/6dd34c53e5f5?raw)
