Skip to main content

POST Request

If you need to POST data to your endpoint rather than use a GET request, you can specify the method of the request and add a body, as shown in the example below:

<Action name="GetDataTable">
<Fetch method="POST" url="{URL}">
<Body content-type="application/x-www-form-urlencoded">
<Item name="Item1" value="value1" />
<Item name="Item2" value="value2" />
<Body>
<DataTableTransform path="value" />
</Fetch>
</Action>

You can specify the Body as a raw body value by using the BodyContent element.

<Action name="GetDataTable">
<Fetch method="POST" url="{URL}">
<BodyContent content-type="application/x-www-form-urlencoded">
Item1=value1&Item2=value2
<BodyContent>
<DataTableTransform path="value" />
</Fetch>
</Action>