Execute a script from the REST API

Hello all,
I’ve created a ECMAScript in the Main UI and tested it successfully with the run button.
I tought I would be able to run it from the rest API with “/rest/scripts//run” but it does nothing and “/rest/scripts” doesn’t return anything either.
Any idea why ?
Thank you

according to the api explorer it needs to be

/rest/scripts/runnow

and you need to call it through an http/post request

It doesn’t work. Can you tell me where the api explorer is located please ?

In MainUi - Developer Tools.
Sorry. The correct endpoint is: /rest/rules/(ruleName)/runnow

1 Like