Create Notification
Create a new Notification for an Event.
This endpoint enables you to create a new Event Notification for the specified Organization. You need to supply a request body with the details of the new Notification.
Authorizations
Path Parameters
Body
Request containing a Notification entity.
The name of the Event type that the Notification is based on. When an Event of this type occurs and any calculation built into the Notification evaluates to True, the Notification is triggered.
Note: If the Notification is set to always fire, then the Notification will always be sent when the Event of the type it is based on occurs, and without any other conditions defined by a calculation having to be met.
1"configuration.commitment.updated"
The version number of the entity:
- Create entity: Not valid for initial insertion of new entity - do not use for Create. On initial Create, version is set at 1 and listed in the response.
- Update Entity: On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
A Boolean flag indicating whether the Notification is always triggered, regardless of other conditions and omitting reference to any calculation. This means the Notification will be triggered simply by the Event it is based on occurring and with no further conditions having to be met.
- TRUE - the Notification is always triggered and omits any reference to the calculation to check for other conditions being true before triggering the Notification.
- FALSE - the Notification is only triggered when the Event it is based on occurs and any calculation is checked and all conditions defined by the calculation are met.
false
A logical expression that that is evaluated to a Boolean. If it evaluates as True, a Notification for the Event is created and sent to the configured destination.
Calculations can reference numeric, string, and boolean Event fields.
See Creating Calculations in the m3ter documentation for more information.
5000"(new.amountSpent >= ((new.amount*90)/100)) \nAND ((old.amountSpent <= ((old.amount*90)/100)) OR (old.amountSpent == null))"
Response
Returns the created Notification
Response containing a Notification entity.
A Boolean flag indicating whether the Notification is always triggered, regardless of other conditions and omitting reference to any calculation. This means the Notification will be triggered simply by the Event it is based on occurring and with no further conditions having to be met.
- TRUE - the Notification is always triggered and omits any reference to the calculation to check for other conditions being true before triggering the Notification.
- FALSE - the Notification is only triggered when the Event it is based on occurs and any calculation is checked and all conditions defined by the calculation are met.
false
The name of the Event that the Notification is based on. When this Event occurs and the calculation evaluates to True, the Notification is triggered.
Note: If the Notification is set to always fire, then the Notification will always be sent when the Event it is based on occurs, and without any other conditions defined by a calculation having to be met.
"configuration.commitment.updated"
A logical expression that that is evaluated to a Boolean. If it evaluates as True, a Notification for the Event is created and sent to the configured destination.
Calculations can reference numeric, string, and boolean Event fields.
See Creating Calculations in the m3ter documentation for more information.
"(new.amountSpent >= ((new.amount*90)/100)) \nAND ((old.amountSpent <= ((old.amount*90)/100)) OR (old.amountSpent == null))"