Skip to main content

Call

The Call task allows you to make calls to external services.

Properties

NameTypeRequiredDescription
callstringyesThe name of the function to call.
withmapnoA name/value mapping of the parameters to call the function with

HTTP

Properties

NameTypeRequiredDescription
methodstringyesThe HTTP request method.
endpointstring|endpointyesAn URI or an object that describes the HTTP endpoint to call.
headersmapnoA name/value mapping of the HTTP headers to use, if any.
bodyanynoThe HTTP request body, if any.
querymap[string, any]noA name/value mapping of the query parameters to use, if any.
outputstringnoThe http call's output format.
Supported values are:
- raw, which output's the base-64 encoded http response content, if any.
- content, which outputs the content of http response, possibly deserialized.
- response, which outputs the http response.
Defaults to content.
redirectbooleannoSpecifies whether redirection status codes (300–399) should be treated as errors.
If set to false, runtimes must raise an error for response status codes outside the 200–299 range.
If set to true, they must raise an error for status codes outside the 200–399 range.
Defaults to false.

Example

document:
dsl: 1.0.0
namespace: zigflow
name: call-http
version: 0.0.1
do:
- getUser:
call: http
with:
method: get
endpoint: https://jsonplaceholder.typicode.com/users/2