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

# POST /detector/{detectorId}/publishingDestination

`POST /detector/{detectorId}/publishingDestination`

Creates a publishing destination to export findings to. The resource to export findings to must exist before you use this operation.

## Path parameters

- `detectorId` string, required

## Request body

- object
  - `destinationType` 'S3', required — The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.
  - `destinationProperties` object, required — Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.
    - `DestinationArn` string — <p>The ARN of the resource to publish to.</p> <p>To specify an S3 bucket folder use the following format: <code>arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/</code> </p>
    - `KmsKeyArn` string — The ARN of the KMS key to use for encryption.
  - `clientToken` string — The idempotency token for the request.

## Response `200`

Success

- CreatePublishingDestinationResponse
  - `DestinationId` string, required — The ID of the publishing destination that is created.

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