Skip to main content
PATCH
Rename a folder or change its slug

Authorizations

Authorization
string
header
required

varg API key (varg_...). Get one at app.varg.ai or run bunx vargai login. App sessions may alternatively send a Supabase JWT.

Path Parameters

id
string
required

Folder id (uuid) or slug.

Body

application/json

At least one of name or slug is required.

name
string
Required string length: 1 - 128
slug
string
Required string length: 1 - 64
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

Response

The updated folder (without file_count)

workspace
object
required

A folder that groups files. Folders are shared with the dashboard, so a folder created through the API appears in the web app.