---
title: "POST /codesecurity/integration/update"
method: POST
path: "/codesecurity/integration/update"
---

# POST /codesecurity/integration/update

`POST /codesecurity/integration/update`

Updates an existing code security integration.

After calling the `CreateCodeSecurityIntegration` operation, you complete authentication and authorization with your provider. Next you call the `UpdateCodeSecurityIntegration` operation to provide the `details` to complete the integration setup

## Request body

- object
  - `integrationArn` string, required — arn:aws:inspector2:<region>:<account-id>:codesecurity-integration/<uuid>
  - `details` object, required — Contains details required to update a code security integration with a specific repository provider.
    - `gitlabSelfManaged` object — Details specific to updating an integration with a self-managed GitLab instance.
      - `authCode` string, password, required — The authorization code received from the self-managed GitLab instance to update the integration.
    - `github` object — Details specific to updating an integration with GitHub.
      - `code` string, password, required — The authorization code received from GitHub to update the integration.
      - `installationId` string, required — The installation ID of the GitHub App associated with the integration.

## Response `200`

Success

- UpdateCodeSecurityIntegrationResponse
  - `integrationArn` string, required — The Amazon Resource Name (ARN) of the updated code security integration.
  - `status` 'PENDING' | 'IN_PROGRESS' | 'ACTIVE' | 'INACTIVE' | 'DISABLING', required — The current status of the updated code security integration.

## 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)
