await g.sys.system.callExternalApi([
{
url: "FULL_URL",
method: "POST",
body: [
{
first_name: "James",
last_name: "Bond"
}
],
id: "saveApi",
postProcess: [
{
from: "saveApi.output.data.first_name",
to: "setApi.body.first_name"
}
],
queryParams: {
deep: JSON.stringify([{
s_key: "SOURCE_COLLECTION_COLUMN_NAME",
t_key: "TARGET_COLLECTION_COLUMN_NAME",
t_col: "TARGET_COLLECTION_NAME",
select: "COLUMN_NAMES"
}]),
select: "COLUMN_NAMES",
limit: 2,
sort: "COLUMN_NAMES"
},
timeout: 1000,
headers: { "x-am-authorization": "TOKEN" },
},
{
type: 'parallel',
data: [
{
url: "FULL_URL",
method: 'PUT',
body: {},
id: "setApi",
headers: { "x-am-authorization": "TOKEN" }
},
{
url: "FULL_URL",
method: 'GET',
headers: { "x-am-authorization": "TOKEN" }
}
]
}
]);