Skip to main content
PATCH
PATCH /webarchive/destinations/{id} changes name, credentials, role_arn or region_hint. Send at least one of these fields. Requests that use the destination don’t change: deliveries in progress pick up the new values from their next file or retry.
  • A rename alone doesn’t validate.
  • New access_keys, service_account_key, shared_key or sas_token credentials are validated first. On 422 or 503, nothing is changed.
  • assume_role changes are stored first and then validated, as on create. Check validation.status.
  • credentials are replaced as a whole, with the same shape as on create.
bucket, provider, auth_mode, prefix, account, namespace and region can’t change (400 invalid_destination). Create a new destination instead.
409 destination_changed means the destination was changed at the same time: retry. Update is limited to 10 requests per minute and 60 per hour.

Authorizations

Authorization
string
header
required

Use your Bright Data API Key as a Bearer token in the Authorization header.

How to authenticate:

  1. Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
  2. Include the API Key in the Authorization header of your requests
  3. Format: Authorization: Bearer YOUR_API_KEY

Example:

Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication

Path Parameters

id
string
required

Destination ID: dst_ followed by 32 hex characters.

Pattern: ^dst_[a-f0-9]{32}$
Example:

"dst_0123456789abcdef0123456789abcdef"

Body

application/json

Send at least one field.

name
string

New name. A rename alone doesn't validate.

Required string length: 1 - 80
credentials
Access keys (S3, OCI, Alibaba OSS) · object

Required for every auth_mode except assume_role. Up to 8 KiB. Stored encrypted and never returned. On update, replaced as a whole.

role_arn
string

assume_role only. New IAM role.

Pattern: ^arn:aws:iam::[0-9]{12}:role/.+$
region_hint
string

S3 only. New region hint.

Response

The updated destination. Check validation.status.

id
string

Destination ID

Example:

"dst_0123456789abcdef0123456789abcdef"

customer_id
string

Your Bright Data Account ID

name
string
target
object

Where Bright Data writes. Credentials are never returned.

validation
object

Result of the last test upload.

firehose_validation
object

assume_role only. Result of the same test with the Bright Data Data Firehose role. For information only: it doesn't change validation.status.

target_revision
integer

Increases when the target changes

auth_revision
integer

Increases when the credentials or role change

next_validation_at
string<date-time>

Earliest time of the next validation

created_at
string<date-time>
updated_at
string<date-time>