curl --request POST \
--url http://localhost/api/api/buckets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"active_indicator": true,
"description": "<string>",
"rule_id": 123,
"rule_setting": {},
"activate_rule": true
}
'{
"bucket_rules": [
{}
],
"rule_id": 123,
"rule_setting": {},
"activate_rule": true,
"last_timestamp": "<string>",
"modified_by": {
"id": 123
},
"created_by": {
"id": 123
}
}Create a new bucket.
curl --request POST \
--url http://localhost/api/api/buckets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"active_indicator": true,
"description": "<string>",
"rule_id": 123,
"rule_setting": {},
"activate_rule": true
}
'{
"bucket_rules": [
{}
],
"rule_id": 123,
"rule_setting": {},
"activate_rule": true,
"last_timestamp": "<string>",
"modified_by": {
"id": 123
},
"created_by": {
"id": 123
}
}JWT token obtained from AWS Cognito or custom authentication service
Bucket created successfully.