Lifecycle Rules
Configure automatic object expiration and cleanup policies for your Stook Buckets.
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
422
Validation Error
application/json
get
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycleAuthorizations
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
422
Validation Error
application/json
get
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}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
422
Validation Error
application/json
post
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycleAuthorizations
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
422
Validation Error
application/json
put
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}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
422
Validation Error
application/json
delete
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}Last updated
Was this helpful?