---
title: "PUT /analyzer/{analyzerName}/archive-rule"
method: PUT
path: "/analyzer/{analyzerName}/archive-rule"
---

# PUT /analyzer/{analyzerName}/archive-rule

`PUT /analyzer/{analyzerName}/archive-rule`

Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.

To learn about filter keys that you can use to create an archive rule, see [IAM Access Analyzer filter keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html) in the **IAM User Guide**.

## Path parameters

- `analyzerName` string, required

## Request body

- object
  - `ruleName` string, required — The name of the rule to create.
  - `filter` object, required — The criteria for the rule.
  - `clientToken` string — A client token.

## Response `200`

Success

## Other responses

- `480` — ResourceNotFoundException
- `481` — ConflictException
- `482` — ValidationException
- `483` — InternalServerException
- `484` — ServiceQuotaExceededException
- `485` — ThrottlingException
- `486` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/accessanalyzer.md) · [All operations](https://skmtc.net/aws/apis/accessanalyzer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/accessanalyzer/versions/d729b5bbb9cd/schema)
