# Create an auto-approval rule

Launch stage: Beta

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

Create an auto-approval rule

API scopes: cleanrooms

## Path parameters

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

## Request body

- `auto_approval_rule` (object, required)
  - `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
}
```

