Folders

Create several folders

POST
/spaces/{space_id}/folders/batch

Create several folders in one call from POSIX-style paths such as 'Contracts/2026/Q1': missing parent folders are created, existing ones are reused (created: false). Paths are relative to parent_folder_id when given. For a single folder use documents.folder_create.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

space_id*string

Resource identifier: space_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128
Idempotency-Key?string

A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.

Length1 <= length <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/spaces/123e4567-e89b-42d3-a456-426614174000/folders/batch" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{    "paths": [      "example"    ]  }'
{  "folders": [    {      "id": "123e4567-e89b-42d3-a456-426614174000",      "space_id": "123e4567-e89b-42d3-a456-426614174000",      "parent_id": "123e4567-e89b-42d3-a456-426614174000",      "name": "Customer documents",      "path": "/",      "created_at": "2026-09-04T12:00:00Z",      "document_count": 0,      "child_folder_count": 0,      "total_size": 0,      "created": false    }  ],  "space_id": "123e4567-e89b-42d3-a456-426614174000"}