# Update an auto-approval rule

Launch stage: Beta

`PATCH /api/2.0/clean-rooms/{clean_room_name}/auto-approval-rules/{rule_id}`

Update a auto-approval rule by rule ID

API scopes: cleanrooms

## Path parameters

- `clean_room_name` (string, required)
  The name of the clean room this auto-approval rule belongs to.
- `rule_id` (string, required)
  A generated UUID identifying the rule.

## Request body

The auto-approval rule to update. The rule_id field is used to identify the rule to update.
- `author_collaborator_alias` (string, optional)
  Collaborator alias of the author covered by the rule.
   Only one of `author_collaborator_alias` and `author_scope` can be set.
- `author_scope` (string, optional)
  Scope of authors covered by the rule.
   Only one of `author_collaborator_alias` and `author_scope` can be set.
  Possible values:
  - `ANY_AUTHOR`
- `runner_collaborator_alias` (string, optional)
  Collaborator alias of the runner covered by the rule.

## Returns

Returns the CleanRoomAutoApprovalRule object.

## Response

```json
{
  "clean_room_name": "string",
  "rule_id": "string",
  "rule_owner_collaborator_alias": "string",
  "author_collaborator_alias": "string",
  "author_scope": "ANY_AUTHOR",
  "runner_collaborator_alias": "string",
  "created_at": 0
}
```

