Skip to main content
POST
/
object-storage
/
{service_id}
/
buckets
Create a Bucket
curl --request POST \
  --url https://api.cloud.onidel.com/object-storage/{service_id}/buckets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bucket_name": "my-bucket",
  "team_id": "96616865-475e-4191-aba5-f89f0a4b71fe",
  "versioning": false,
  "object_lock": false
}
'
{
  "keys": [
    {
      "access_key": "<string>",
      "secret_key": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

service_id
string<uuid>
required

Object storage service UUID

Body

application/json
bucket_name
string
required

Name of the bucket to create

Example:

"my-bucket"

team_id
string<uuid>

Team ID. Default team will be used if not provided.

Example:

"96616865-475e-4191-aba5-f89f0a4b71fe"

versioning
boolean
default:false

Enable versioning on the bucket

object_lock
boolean
default:false

Enable object lock on the bucket

Response

Bucket created successfully

keys
object[]

Access keys for the newly created bucket