---
title: "POST /ec2deepinspectionconfiguration/update"
method: POST
path: "/ec2deepinspectionconfiguration/update"
---

# POST /ec2deepinspectionconfiguration/update

`POST /ec2deepinspectionconfiguration/update`

Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.

## Request body

- object
  - `activateDeepInspection` boolean — Specify <code>TRUE</code> to activate Amazon Inspector deep inspection in your account, or <code>FALSE</code> to deactivate. Member accounts in an organization cannot deactivate deep inspection, instead the delegated administrator for the organization can deactivate a member account using <a href="https://docs.aws.amazon.com/inspector/v2/APIReference/API_BatchUpdateMemberEc2DeepInspectionStatus.html">BatchUpdateMemberEc2DeepInspectionStatus</a>.
  - `packagePaths` Path[] — The Amazon Inspector deep inspection custom paths you are adding for your account.

## Response `200`

Success

- UpdateEc2DeepInspectionConfigurationResponse
  - `packagePaths` Path[] — The current Amazon Inspector deep inspection custom paths for your account.
  - `orgPackagePaths` Path[] — The current Amazon Inspector deep inspection custom paths for the organization.
  - `status` 'ACTIVATED' | 'DEACTIVATED' | 'PENDING' | 'FAILED' — The status of Amazon Inspector deep inspection in your account.
  - `errorMessage` string — An error message explaining why new Amazon Inspector deep inspection custom paths could not be added.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ThrottlingException
- `483` — 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)
