ressource.socialbetadocumentation
API referenceFolders

Create a folder, at the root or inside another

Names are unique among siblings (409). A parent that is not the caller's is 404. Folders nest at most ten levels deep (400).

POST
/api/v1/folders

Sends a real request with your token. Prefer a read-only token; it is kept in this browser's storage.

Names are unique among siblings (409). A parent that is not the caller's is 404. Folders nest at most ten levels deep (400).

Authorization

headerAuthorizationBearer <token>

A personal access token (rsk_…) or a Supabase access token.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 255
parent_folder_id?|null
description?|null
color?|null
icon?|null
is_private?boolean
sort_order?integer
Range0 <= value <= 1000000

Response Body

The created folder

application/json
  1. response
id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
name*string
description*string|null
parent_folder_id*|null
color*string|null
icon*string|null
is_private*boolean|null
sort_order*number|null
level*number|null
path*string|null
created_at*string|null
updated_at*string|null
child_folder_count*number
bookmark_count*number
curl -X POST 'https://www.ressource.social/api/v1/folders' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "description": "string",  "parent_folder_id": "26caaf35-00f1-4c8f-a2ac-cb04b9b9a6ec",  "color": "string",  "icon": "string",  "is_private": true,  "sort_order": 0,  "level": 0,  "path": "string",  "created_at": "string",  "updated_at": "string",  "child_folder_count": 0,  "bookmark_count": 0}