...
Table plus |
---|
...
...
|
...
|
...
...
|
...
<col style="width: 76.0px;" />
<col style="width: 410.0px;" />
<col style="width: 99.0px;" />
<col style="width: 141.0px;" />
...
| ||||||||
|
Description
Excerpt | ||
---|---|---|
| ||
Adds an object to the response that will be returned to the Webhook caller, as the HTTP body. |
</ac:rich-text-body>
</ac:structured-macro>
<p>Adds Adds an object to the response that will be returned to the Webhook caller, as the HTTP body.</p>
<h2>Parameters</h2>
<ac:structured-macro ac:name="table-plus" ac:schema-version="1" data-layout="default">
<ac:parameter ac:name="applyColStyleToCell">true</ac:parameter>
<ac:parameter ac:name="columnTypes">s
Parameters
Table plus | ||||
---|---|---|---|---|
|
...
| ||||||||
|
...
<h2>Example</h2>
...
|
Return Type
None
Example
Code Block | ||
---|---|---|
| ||
//getting the REST/HTTP call input parameters: WebhookPayload httpRequestPayload = getWebhookPayload(); //getting the used HTTP method: string httpMethod = httpRequestPayload.httpMethod;//This can be something like "GET", "POST", "PUT" etc. |
...
//getting the http request payload (body): |
...
string httpPayload = httpRequestPayload.payload; |
...
//getting the http query parameters: |
...
WebhookParam[] httpQueryParams = httpRequestPayload.queryParams; |
...
string firstQueryParamName = httpQueryParams[0].name; |
...
string firstQueryParamValue = httpQueryParams[0].values[0]; |
...
//sending the response back to the caller: |
...
appendToWebhookResponse("http method:"); |
...
appendToWebhookResponse(httpMethod); |
...
appendToWebhookResponse("payload:"); |
...
appendToWebhookResponse(httpPayload); |
...
appendToWebhookResponse("firstQueryParamName:"); |
...
appendToWebhookResponse(firstQueryParamName); |
...
appendToWebhookResponse("firstQueryParamValue:"); |
...
appendToWebhookResponse(firstQueryParamValue); |
...
//returning a custom HTTP status code: |
...
return true, 1234; |
...
</ac:structured-macro><p><ac:structured-macro ac:name="
Note |
---|
<ac:rich-text-body>
<p>If the <strong>responsePart</strong>
If the responsePart parameter has another type but string, a conversion to string will be attempted. |
</ac:rich-text-body>
</ac:structured-macro></p>
<h2>See also</h2>
<p><ac:structured-macro ac:name="contentbylabel" ac:schema-version="4" data-layout="default">
<ac:parameter ac:name="showLabels">false</ac:parameter>
<ac:parameter ac:name="max">25</ac:parameter>
<ac:parameter ac:name="showSpace">false</ac:parameter>
<ac:parameter ac:name="cql">label
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|
</ac:structured-macro></p>
|