> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# gable contract bulk-update-enforcement-levels

Updates the enforcement level of all contracts to the given enforcement level.
If a data asset id pattern is provided, only the contracts that have associated data assets that match the provided data asset id pattern will be updated.

## Usage

```bash theme={null}
gable contract bulk-update-enforcement-levels [OPTIONS]
```

## Options

| Option                    | Type     | Required | Default | Description                                                                                                                                                                        |            |   |   |                                                 |
| ------------------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | - | - | ----------------------------------------------- |
| `--enforcement-level`     | `RECORD` | `NOTIFY` | `ALERT` | `BLOCK`                                                                                                                                                                            | `INACTIVE` | ✓ |   | The enforcement level to set for all contracts. |
| `--data-asset-id-pattern` | text     |          |         | Regex pattern to match data asset IDs. Only the contracts that have associated data assets that match the provided data asset id pattern will be updated.                          |            |   |   |                                                 |
| `--dry-run`               | boolean  |          | false   | Show what would be updated without actually making changes.                                                                                                                        |            |   |   |                                                 |
| `--endpoint`              | text     |          |         | Customer API endpoint for Gable, in the format [https://api.company.gable.ai/](https://api.company.gable.ai/). Can also be set with the GABLE\_API\_ENDPOINT environment variable. |            |   |   |                                                 |
| `--api-key`               | text     |          |         | API Key for Gable. Can also be set with the GABLE\_API\_KEY environment variable.                                                                                                  |            |   |   |                                                 |

## Example

```bash theme={null}

  gable contract bulk-update-enforcement-levels BLOCK
  gable contract bulk-update-enforcement-levels ALERT data-asset-id-pattern 'postgres://*'
  gable contract bulk-update-enforcement-levels BLOCK --dry-run
```
