I am trying to pass path parameters in the path in Webhook task body of Palantir foundry in the below format.
{
"calls": [
{
"type": "magritte-rest-call",
"method": "GET",
"parameters": {
"empid": {{json emp}}
},
"path": "v1/data/employee/{empid}"
}
]
}
I am getting a response in the format below.
"filename=v1_data_employee_null?empid=1234"
I am getting null
in the path parameter v1_data_employee_null
and value will assigned to query (?empid=1234
) parameter.
I want path value to be replaced with the parameter passed (empid
).
You can use the notation described in the docs:
@{createAccount.id}
In your case, it should work with:
"path": "v1/data/employee/@{empid}"