Update a bucket
Configure Rule Settings
Rule Settings
Update a bucket by its ID.
PATCH
Update a bucket
In order to change the configurable parameters for a rule in a bucket, two parameters will be required: rule_id as used previously to detail the rule that will be updated, and rule_setting.
rule_setting is a JSON object that will be specific to each given rule id. Thus, it should be aligned with the rule id to be updated.
Sample HTTP Request (All Rule 6 Parameters)
Note: The keys used as part of the “rule_setting” JSON will need to be aligned with those highlighted above in respect to each Rule. Otherwise, the following response will be provided with status code 400.
You can also update a part of the rule’s parameters by providing the relevant keys that you would like to use to update the rule. For instance, to update only the aggregated_amount_exceeds. You can provide the following request body.
Sample HTTP Request (Partial Rule 12 Parameters)
By doing so, only the aggregated amount exceeds parameter for Rule 12 will be updated for the given bucket. The other fields “variance percent” and “lookback days” will remain unchanged.
Example
You may also change the activation and the settings of a rule at the same time by providing the necessary fields that you wish to update. For instance, you can use the following response body to change part of a rule’s parameter and turn on the rule at the same time.List of rule_setting
The list of rule_setting based on each rules are as follows:Authorizations
JWT token obtained from AWS Cognito or custom authentication service
Path Parameters
A unique integer value identifying this bucket.
