Skip to main content
POST
Configure S3 bucket automatic cleanup

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234_abcdef

Path Parameters

storage_id
integer<int64>
required

Unique identifier for the storage instance

bucket_name
string
required

Name of the S3 bucket to configure lifecycle policy for

Body

application/json

Lifecycle configuration for automatic object cleanup

expiration_days
integer<int64>

Number of days after which objects will be automatically deleted from the bucket. Must be a positive integer. Common values: 30 for monthly cleanup, 365 for yearly retention.

Example:

30

Response