Installing a Trigger Delivery Policy
To install a Trigger Delivery Policy, you need its JSON definition. Then you can install the Trigger Delivery Policy via Realm Management APIs.
The name of the Trigger Delivery Policy must be unique within the Realm, or an error will be returned.
Installing a Trigger Delivery Policy using Realm Management APIs
POST api.<your astarte domain>/realmmanagement/v1/<realm name>/policies
The POST request must have the following request body, with content type application/json
{
"data": {
"name" : "simple_trigger_delivery_policy",
"maximum_capacity" : 100,
"error_handlers" : [
{
"on" : "any_error",
"strategy" : "discard"
}
]
}
}