run script using the API

How can I run/pass scripted tests to the API?

I see the API has the support for script=, but I don’t see any documentation or examples on how to pass it to the API.

thanks.

Just URL encode the script that you would normally paste into the UI.

so it would be
&s=<url_encoded script> ?

Close. It would be &script=

cool .thanks.