Calling external API within ScriptingRules
How to call an external API
const getMethod = DR.http.get(<URL>, [OPTIONS]);
const postMethod = DR.http.post(<URL>, <DATA>, [OPTIONS]);
const putMethod = DR.http.put(<URL>, <DATA>, [OPTIONS]);
const patchMethod = DR.http.patch(<URL>, <DATA>, [OPTIONS]);
const deleteMethod = DR.http.delete(<URL>, [OPTIONS]);{
"headers": {} //custom headers like key:value pair
}Error handling
Response object and how to work with it
Functionality limitations
Last updated
Was this helpful?

