REST.RESPOND

star This is a Streamsheets Premium feature. This is a leagacy function and was replaced by HTTPRESPOND()

Sends either arbitrary JSON data or a message from the outbox to specified Producer. Usually this function is used to respond to a previously received request-message. You can use the Function Wizard for this function.

Syntax

=REST.RESPOND(Consumer, RequestId, Body, [StatusCode, Headers])

Arguments

NameDescription
ConsumerName of the Consumer to use for sending respond.
RequestIdThe requestId as provided by a previously received request-message
BodyData to send as response.
StatusCodeOptional. Defaults to 200. HTTP status code of the response.
HeadersOptional. Headers of the response.

Return Value

TRUE on success or error code otherwise.