---
title: "Update AWS scan options"
method: PATCH
path: "/api/v2/agentless_scanning/accounts/aws/{account_id}"
tags: ["Agentless Scanning"]
---

# Update AWS scan options

`PATCH /api/v2/agentless_scanning/accounts/aws/{account_id}`

Update the Agentless scan options for an activated account.

## Path parameters

- `account_id` string, required

## Request body

- AwsScanOptionsUpdateRequest — Request object that includes the scan options to update.
  - `data` AwsScanOptionsUpdateData, required — Object for the scan options of a single AWS account.
    - `attributes` AwsScanOptionsUpdateAttributes, required — Attributes for the AWS scan options to update.
      - `compliance_host` boolean — Indicates whether host compliance scanning is enabled.
      - `lambda` boolean — Indicates if scanning of Lambda functions is enabled.
      - `sensitive_data` boolean — Indicates if scanning for sensitive data is enabled.
      - `vuln_containers_os` boolean — Indicates if scanning for vulnerabilities in containers is enabled.
      - `vuln_host_os` boolean — Indicates if scanning for vulnerabilities in hosts is enabled.
    - `id` string, required — The ID of the AWS account.
    - `type` 'aws_scan_options', required — The type of the resource. The value should always be `aws_scan_options`.

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `403` — Not Authorized
- `404` — Not Found
- `429` — Too many requests

---

[API](https://skmtc.dev/datadog/apis/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
