API
HTTP PUT (JSON)
Overview
This BLOCK sends JSON data to a specified URL via an HTTP PUT request.
The BLOCK takes data stored in a variable, encodes it as JSON, and sends it within the request body. Include Content-Type: application/json in the request header.
"HTTP status" responses in the 400 or 500s indicate that the execution failed.
Properties
Property | Explanation |
---|---|
BLOCK name | Configure the name displayed on this BLOCK. |
URL | Designate a URL for the request. |
Query parameters |
Designate query parameters as key and value pairs. Values support % format characters and variable expansion. |
Request body variable |
Designate the variable that contains the data that will be encoded as JSON and included in the request body. |
BLOCK memos | Make notes about this BLOCK. |
Reattempts in case of errors | Designate the number of attempts to try in case of a request error. |
Time between attempts | Designate the number of seconds to wait between attempts in case of a request error. |
Results variable |
Designate the variable that will store the response returned from the HTTP server. The value stored into the variable will be the response's message-body only. When the Content-Type header is application/json, the variable will store the results of decoding the message-body. For details, refer to Output specifications > HTTP GET / HTTP POST / HTTP PUT |
Request headers |
Designate request headers as key and value pairs. Values support % format characters and variable expansion. |