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

x/windmill/windmill-api/services/ScriptService.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.44.0/windmill-api/services/ScriptService.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"; kind?:
| "script"
| "failure"
| "trigger"
| "command"
| "approval"
; }; }

Returns

string script created