If advanced is true and the method is not GET, you can specify the type of request body using the requestBody argument. The available options are JSON, Form, or File.
Depending on the chosen requestBody type, you must provide the corresponding data via one of the following arguments:
- Form: Use
formValues (a dictionary) to provide multipart form data. This is useful for uploading files as field values. - JSON: Use
jSONValues (a dictionary) to provide a JSON object. - File: Use
file (a variable picker) to provide a specific file to be sent in the request body.
Note: requestBody and its associated data arguments are only available for non-GET methods.
// Example: Sending a JSON body
GetContentsofURL advanced=true method="POST" requestBody="JSON" jSONValues={"key": "value"}
// Example: Sending a Multipart Form
GetContentsofURL advanced=true method="POST" requestBody="Form" formValues={"field1": "value1"}