0
Resume Suspended Flow as Owner
One script reply has been approved by the moderators Verified

Resume a suspended flow based on its id. Require to be owner of the suspended flow

Created by admin 702 days ago Viewed 9173 times
0
Submitted by admin Deno
Verified 702 days ago
1
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
2

3
export async function main(id: string, resumePayload?: object) {
4
  return wmill.JobService.resumeSuspendedFlowAsOwner({
5
    workspace: wmill.getWorkspace(),
6
    id,
7
    requestBody: resumePayload ?? {},
8
  });
9
}
10