Skip to main content
PUT
/
api
/
s3
/
buckets
/
{bucket_name}
Update bucket
curl --request PUT \
  --url https://aiapi.{client}.nx1cloud.com/api/s3/buckets/{bucket_name} \
  --header 'Authorization-PSK: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "endpoint": "<string>",
  "accesskey": "<string>",
  "secretkey": "<string>"
}
'
{
  "bucket": "<string>",
  "endpoint": "<string>",
  "accesskey": "<string>",
  "secretkey": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization-PSK
string
header
required

Path Parameters

bucket_name
string
required

The unique name of the S3 bucket to update.

Body

application/json
endpoint
string | null

New endpoint URL for the S3 bucket.

accesskey
string | null

New access key for the S3 bucket.

secretkey
string | null

New secret key for the S3 bucket.

Response

Bucket updated successfully.

bucket
string
required

The unique name of the S3 bucket.

endpoint
string
required

The endpoint URL used to connect to the S3 bucket.

accesskey
string
required

The access key used for authentication.

secretkey
string
required

The secret key used for authentication.

id
string<uuid>

Unique ID for the bucket.

created_at
string<date-time>

Timestamp when the bucket record was created.

updated_at
string<date-time>

Timestamp when the bucket record was last updated.