---
title: "POST /codesecurity/scan-configuration/update"
method: POST
path: "/codesecurity/scan-configuration/update"
---

# POST /codesecurity/scan-configuration/update

`POST /codesecurity/scan-configuration/update`

Updates an existing code security scan configuration.

## Request body

- object
  - `scanConfigurationArn` string, required — arn:aws:inspector2:<region>:<account-id>:owner/<owner-id>/codesecurity-configuration/<uuid>
  - `configuration` object, required — Contains the configuration settings for code security scans.
    - `periodicScanConfiguration` object — Configuration settings for periodic scans that run on a scheduled basis.
      - `frequency` 'WEEKLY' | 'MONTHLY' | 'NEVER' — <p>The frequency at which periodic scans are performed (such as weekly or monthly).</p> <p>If you don't provide the <code>frequencyExpression</code> Amazon Inspector chooses day for the scan to run. If you provide the <code>frequencyExpression</code>, the schedule must match the specified <code>frequency</code>.</p>
      - `frequencyExpression` string — The schedule expression for periodic scans, in cron format.
    - `continuousIntegrationScanConfiguration` object — Configuration settings for continuous integration scans that run automatically when code changes are made.
      - `supportedEvents` ContinuousIntegrationScanEvent[], required — The repository events that trigger continuous integration scans, such as pull requests or commits.
    - `ruleSetCategories` RuleSetCategory[] — The categories of security rules to be applied during the scan.

## Response `200`

Success

- UpdateCodeSecurityScanConfigurationResponse
  - `scanConfigurationArn` string — The Amazon Resource Name (ARN) of the updated scan configuration.

## Other responses

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

---

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