Send a notification from an inbox rule
POST/communications/inbox_rule/:id/emission
Sends a notification from one of your invoked inbox rules: the resource the event is about (nrn) and the data the rule's templates read (context).
Sends are idempotent by context.id. Sending the same id for the same nrn again answers 200, marks each entry in emitted with existing: true, and creates nothing. Sending it for a different nrn answers 409.
Recipients who can't see the resource are left out and counted in rejected, and people who turned the rule off for that resource don't receive it.
Request
Responses
- 200
- 201
- 202
- 400
- 4XX
- 5XX
A retry of an earlier send, nobody was left to notify, or a dry run.
With dry_run=true, the body describes what would be sent: would_emit, rejected, and unreached when a reading would reach nobody.
At least one notification was created.
The rule declares a delay or a batch, so delivery was deferred.
The definition, the context, or the NRN is invalid. Each entry in errors points to one problem.
The request couldn't be processed. For example, a parameter is invalid, the resource doesn't exist, or you don't have permission. The body is a problem details object (RFC 9457).
Something went wrong on nullplatform's side. The body is a problem details object (RFC 9457).