Skip to Content
aiMermaid
APIReference

Rename or move a folder

Also available in Swagger.

This calls the live API and changes your real projects.
PATCH
/v1/folders/{id}

A folder moves with everything inside it; parent_id null moves it to the top. Credits: 5.

Authorization

bearer
headerAuthorizationBearer <token>

An API key: amk_live__. A key can have an expiry date chosen when it is created (1 hour to 90 days, or none). After that moment the API answers 401 unauthorized, as for a revoked key. Create a new key or rotate the expired one (rotation keeps the same lifetime). A key can also be limited to one folder (with its subfolders) or one project: anything else answers 404 not_found, and a project key cannot create projects or use folders (403 insufficient_scope). A folder key creates projects and folders inside its folder. If that folder or project is deleted for good, the key answers 403 target_gone.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
name?string
Length1 <= length <= 40
parent_id?|

A folder id from GET /v1/folders, or null.

Formatuuid

Response Body

OK

Example Request
curl -X PATCH 'https://pltlaavsvbpebaopfbsp.supabase.co/functions/v1/api/v1/folders/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
Empty