Lifecycle Rules

Configure automatic object expiration and cleanup policies for your Stook Buckets.

List lifecycle rules for a bucket

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

The UUID of the organization

bucket_uuidstringRequired

The UUID of the bucket

Responses
200

Successful Response

application/json
get
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle

Show a specific lifecycle rule

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

The UUID of the organization

bucket_uuidstringRequired

The UUID of the bucket

lifecycle_uuidstringRequired

The UUID of the lifecycle rule

Responses
200

Successful Response

application/json
get
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}

Create a lifecycle rule for a bucket

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

The UUID of the organization

bucket_uuidstringRequired

The UUID of the bucket

Body
expiration_daysintegerRequired
filter_prefixstringOptional
Responses
200

Successful Response

application/json
post
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle

Update a lifecycle rule

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

The UUID of the organization

bucket_uuidstringRequired

The UUID of the bucket

lifecycle_uuidstringRequired

The UUID of the lifecycle rule

Body
statusbooleanOptional
expiration_daysintegerOptional
filter_prefixstringOptional
Responses
200

Successful Response

application/json
put
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}

Delete a lifecycle rule

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

The UUID of the organization

bucket_uuidstringRequired

The UUID of the bucket

lifecycle_uuidstringRequired

The UUID of the lifecycle rule

Responses
200

Lifecycle rule successfully deleted

application/json
delete
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}

Last updated

Was this helpful?