---
title: "Default bucket carried by the selected authorizer"
method: POST
path: "/destinations/s3/actions/defaultBucket"
tags: ["destinations.s3"]
---

# Default bucket carried by the selected authorizer

`POST /destinations/s3/actions/defaultBucket`

## Request

- Base URL: `https://headless.dataddo.com/customer-api/v1`
- URL: `https://headless.dataddo.com/customer-api/v1/destinations/s3/actions/defaultBucket`
- Auth: none declared

Backs the Bucket field's prefill in the destination form: when the selected authorizer
already carries a bucket (classic S3 authorizer), the FE fetches this url on oAuthId
change and prefills the field's value (same contract as AwsAssumeRoleAuthorizer's
External ID field). The aws_assume_role authorizer carries no bucket, so this returns
empty and the field stays blank for the user to fill in.

## Request body

- object
  - `oAuthId` string

## Response `200`

Default bucket carried by the selected authorizer

- object[]
  - `label` string
  - `value` string

---

[API](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api.md) · [All operations](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataddo/apis/dataddo-headless-beta-api/revisions/dcfa2345bd10?raw)
