Lifecycle Rules
Configure automatic object expiration and cleanup policies for your Stook Buckets.
The UUID of the organization
The UUID of the bucket
Successful Response
Validation Error
GET /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": true,
"data": {
"uuid": "text",
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
}
The UUID of the organization
The UUID of the bucket
The UUID of the lifecycle rule
Successful Response
Validation Error
GET /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": true,
"data": {
"uuid": "text",
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
}
The UUID of the organization
The UUID of the bucket
The UUID of the lifecycle rule
Successful Response
Validation Error
PUT /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
{
"status": true,
"data": {
"uuid": "text",
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
}
The UUID of the organization
The UUID of the bucket
The UUID of the lifecycle rule
Lifecycle rule successfully deleted
Validation Error
DELETE /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": true,
"message": "text",
"operation_id": "text"
}
The UUID of the organization
The UUID of the bucket
Successful Response
Validation Error
POST /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
{
"status": true,
"data": {
"uuid": "text",
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
}
The UUID of the organization
The UUID of the credential
Credential successfully deleted
DELETE /api/api/v2/stook/{organization_uuid}/credential/{credential_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Credential successfully deleted
{
"status": true,
"message": "text"
}
Last updated
Was this helpful?