Target - Script
Configuration
The name of this target is ScriptTarget
To configure the script run action, you need to provide the following:
- script
The name of the ODSL script to run
Adding a script target
To add a script target to an existing subscription:
- Web Portal
- OpenDataDSL
- REST API
- Select Subscriptions
- Find the subscription you want to add the target to.
- Click the + button next to targets
- Select ScriptTarget
- Fill out the script field appropriately
- Click the save button
// Adding a script run target to an existing subscription
sub = ${subscription:"MySubscription"}
sub.addScriptTarget("myscript")
save sub
POST https://api.opendatadsl.com/service/subscription/v1
Authorization: Bearer {{token}}
{
"name": "MySubscription",
"targets":[{
"name": "ScriptTarget",
"script": "myscript"
}]
}