# PATCH /orgs/{org}/secret-scanning/pattern-configurations

**Resource:** [secret-scanning](../resources/secret-scanning.md)
**Update organization pattern configurations**
**Operation ID:** `secret-scanning/update-org-pattern-configs`

Updates the secret scanning pattern configurations for an organization.

Personal access tokens (classic) need the `write:org` scope to use this endpoint.

## Request Body

**Required:** Yes

**Content Types:** `application/json`

## Responses

| Status | Description |
|--------|-------------|
| 200 | Response |
| 400 | (reference) |
| 403 | (reference) |
| 404 | (reference) |
| 409 | (reference) |
| 422 | (reference) |

