capabilities.work

Create and Run a Script

A 3-step recipe with Windmill. We can help you get access.

Recipe · 3 steps

Create and Run a Script

Create a Windmill script from source and immediately run it by path.

  1. Deploy a new script from the supplied path, content and language. The response body is the new script hash as plain text.
  2. Read the script back by path to confirm the deployment succeeded and to capture the canonical hash of the deployed version.
  3. Submit an asynchronous run of the freshly deployed script. The response body is the new job UUID.
What you'll need to have ready
  • token: Windmill API token presented as a Bearer credential.
  • workspace: The Windmill workspace id.
  • path: The path to deploy the script at (e.g. "f/automation/build").
  • content: The script source code.
  • language: The script language (e.g. "bun", "python3", "deno").
  • summary: Optional short summary describing the script.
  • args: The argument map passed to the script when run.
For your developer

Arazzo workflow windmill:create-and-run-script, 3 operations: createScript → getScriptByPath → runScriptByPath. Specs on APIs.io.