restAsyncPost

A Workflow Engine function that makes a HTTP POST request with a JSON payload to a named REST endpoint. Expects the payload from a previous action, for example, from the convertToJSON function that converts an event, alert or Situation to a JSON blob. Returns false when no payload is found.

restAsyncPost is a non-blocking asynchronous call which returns true to the workflow immediately. It is best for a 'data sink' use case. It does not support setting authentication or other HTTP request fields or attributes.

This function is available for event, alert, and Situation workflows.

Back to Workflow Engine Functions Reference.Workflow Engine Functions Reference

Arguments

Workflow Engine function restAsyncPost takes the following arguments:

Name

Required

Type

Description

URL

Yes

String

The URL of the REST endpoint.

The following example demonstrates typical use of Workflow Engine function restAsyncPost.

{"URL":"https://example.com"}