Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/windmill-api/index.ts>ScriptService.createScript

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
method ScriptService.createScript
import { ScriptService } from "https://deno.land/x/windmill@v1.49.1/windmill-api/index.ts";

create script

Parameters

unnamed 0: { workspace: string; requestBody: { path: string; parent_hash?: string; summary: string; description: string; content: string; schema?: any; is_template?: boolean; lock?: Array<string>; language:
| "python3"
| "deno"
| "go"
| "bash"
; kind?:
| "script"
| "failure"
| "trigger"
| "command"
| "approval"
; }; }

Returns

string script created