REST.RESPOND
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
Name | Description |
---|---|
Consumer | Name of the Consumer to use for sending respond. |
RequestId | The requestId as provided by a previously received request-message |
Body | Data to send as response. |
StatusCode | Optional. Defaults to 200. HTTP status code of the response. |
Headers | Optional. Headers of the response. |
Return Value
TRUE on success or error code otherwise.