Skip to main content
POST
Creates a folder in a repository. Folders organise documents, and you can limit a search or a document list to one. Pass the new folder’s id as folder_id to Add documents to put documents in it. A folder synced from a connected source takes no new folders or documents.

Authentication

Requires an API key, or an OAuth token with repositories:write. The caller also needs edit access to the repository.

Path parameters

string
required
The repository id.

Body parameters

string
required
The folder name, up to 200 characters.
string
The folder to create this one inside. Leave it out to create a top-level folder.

Response

Returns 201 with the new folder: id, name and parent_id.

Errors