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 log stream override — render script | Windmill Hub

Back to Render integration
0

Update log stream override

by hugo697
Published Oct 17, 2025

Updates log stream override information for the specified resource. A log stream override takes precedence over a workspace's default log stream.

Script render Verified
Use in Windmill

The script

Submitted by hugo697 Bun
Verified 407 days ago
All edits
Permalink
1
//native
2
type Render = {
3
	apiKey: string
4
}
5
/**
6
 * Update log stream override
7
 * Updates log stream override information for the specified resource. A log stream override takes precedence over a workspace's default log stream.
8
 */
9
export async function main(
10
	auth: Render,
11
	resourceId: string,
12
	body: { endpoint?: string; token?: string; setting: 'send' | 'drop' }
13
) {
14
	const url = new URL(`https://api.render.com/v1/logs/streams/resource/${resourceId}`)
15

16
	const response = await fetch(url, {
17
		method: 'PUT',
18
		headers: {
19
			'Content-Type': 'application/json',
20
			Authorization: 'Bearer ' + auth.apiKey
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.