Skip to main content
POST
/
api
/
s3
/
buckets
Create bucket
curl --request POST \
  --url https://aiapi.{client}.nx1cloud.com/api/s3/buckets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bucket": "<string>",
  "endpoint": "<string>",
  "accesskey": "<string>",
  "secretkey": "<string>"
}
'
{
  "bucket": "<string>",
  "endpoint": "<string>",
  "accesskey": "<string>",
  "secretkey": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
bucket
string
required

The unique name of the new S3 bucket.

endpoint
string
required

The endpoint URL for connecting to the S3 service.

accesskey
string
required

Access key for the new S3 bucket.

secretkey
string
required

Secret key for the new S3 bucket.

Response

S3 Bucket created successfully.

bucket
string
required

The unique name of the created S3 bucket.

endpoint
string
required

The endpoint URL of the created S3 bucket.

accesskey
string
required

Access key for the created S3 bucket.

secretkey
string
required

Secret key for the created S3 bucket.

created_at
string<date-time>
required

Timestamp when the S3 bucket was created.

updated_at
string<date-time>
required

Timestamp when the S3 bucket was last updated.