GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Windmill Hub
  • Discord
  • Discussions
  • Windmill
  • Login

This view

  • Original page
  • New address

GeezerVison is showing hub.windmill.dev — Update folder — formstack script | Windmill Hub

Back to Formstack integration
0

Update folder

by hugo697
Published Oct 17, 2025

Update the specified folder

Script formstack Verified
Use in Windmill

The script

Submitted by hugo697 Bun
Verified 407 days ago
All edits
Permalink
1
//native
2
type Formstack = {
3
  token: string;
4
};
5
/**
6
 * /folder/:id
7
 * Update the specified folder
8
 */
9
export async function main(
10
  auth: Formstack,
11
  id: string,
12
  body: { name?: string },
13
) {
14
  const url = new URL(`https://www.formstack.com/api/v2/folder/${id}.json`);
15

16
  const response = await fetch(url, {
17
    method: "PUT",
18
    headers: {
19
      "Content-Type": "application/json",
20
      Authorization: "Bearer " + auth.token,
21
    },
22
    body: JSON.stringify(body),
23
  });
24
  if (!response.ok) {
25
    const text = await response.text();
26
    throw new Error(`${response.status} ${text}`);
27
  }
28
  return await response.json();
29
}
30

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.