---
title: "POST /detector/{detectorId}"
method: POST
path: "/detector/{detectorId}"
---

# POST /detector/{detectorId}

`POST /detector/{detectorId}`

Updates the Amazon GuardDuty detector specified by the detectorId.

There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see [Regions and endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html).

## Path parameters

- `detectorId` string, required

## Request body

- object
  - `enable` boolean — Specifies whether the detector is enabled or not enabled.
  - `findingPublishingFrequency` 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'SIX_HOURS' — An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.
  - `dataSources` object — Contains information about which data sources are enabled.
    - `S3Logs` object — Describes whether S3 data event logs are enabled as a data source.
      - `Enable` boolean, required — The status of S3 data event logs as a data source.
    - `Kubernetes` object — Describes whether any Kubernetes logs are enabled as data sources.
      - `AuditLogs` object, required — The status of Kubernetes audit logs as a data source.
        - `Enable` boolean, required — The status of Kubernetes audit logs as a data source.
    - `MalwareProtection` object — Describes whether Malware Protection is enabled as a data source.
      - `ScanEc2InstanceWithFindings` object — Describes the configuration of Malware Protection for EC2 instances with findings.
        - `EbsVolumes` boolean — Describes the configuration for scanning EBS volumes as data source.
  - `features` DetectorFeatureConfiguration[] — Provides the features that will be updated for the detector.
    - `Name` 'S3_DATA_EVENTS' | 'EKS_AUDIT_LOGS' | 'EBS_MALWARE_PROTECTION' | 'RDS_LOGIN_EVENTS' | 'EKS_RUNTIME_MONITORING' | 'LAMBDA_NETWORK_LOGS' — The name of the feature.
    - `Status` 'ENABLED' | 'DISABLED' — The status of the feature.
    - `AdditionalConfiguration` DetectorAdditionalConfiguration[] — Additional configuration for a resource.
      - `Name` 'EKS_ADDON_MANAGEMENT' — Name of the additional configuration.
      - `Status` 'ENABLED' | 'DISABLED' — Status of the additional configuration.

## Response `200`

Success

- UpdateDetectorResponse

## Other responses

- `480` — BadRequestException
- `481` — InternalServerErrorException

---

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