Skip to main content

post_event

Function post_event 

Source
pub async fn post_event(
    __arg0: State<ApiState>,
    __arg1: Extension<User>,
    key: RequestKey,
    body: Bytes,
) -> Result<(StatusCode, Json<NamedEventView>), ApiError>
Expand description

Post an event: each post is one, a repeat of a name and key too; a trigger starts one run per key, a waiting step matches one posted since its run started. Sent again with the same Idempotency-Key, it is the event stored the first time.