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 — Rename List — their_stack script | Windmill Hub

Back to Their Stack integration
0

Rename List

by hugo697
Published Oct 17, 2025
Script their_stack Verified
Use in Windmill

The script

Submitted by hugo697 Bun
Verified 407 days ago
All edits
Permalink
1
//native
2
type TheirStack = {
3
	apiKey: string
4
}
5
/**
6
 * Rename List
7
 *
8
 */
9
export async function main(auth: TheirStack, list_id: string, body: { new_name: string }) {
10
	const url = new URL(`https://api.theirstack.com/v0/company_lists/${list_id}`)
11

12
	const response = await fetch(url, {
13
		method: 'PATCH',
14
		headers: {
15
			'Content-Type': 'application/json',
16
			Authorization: 'Bearer ' + auth.apiKey
17
		},
18
		body: JSON.stringify(body)
19
	})
20
	if (!response.ok) {
21
		const text = await response.text()
22
		throw new Error(`${response.status} ${text}`)
23
	}
24
	return await response.json()
25
}
26

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.