Create a folder.
POST/api/v1/foldersfolders:write
A new folder takes the parent's grants (not for a top folder) unless security says otherwise (group: your groups; none or user: only you), and always the caller, so it is never visible to nobody. Copying the parent's grants needs View Folder Security; giving users or groups access (by the parent's grants or security group) needs Grant Folder User Access or Grant Folder Group Access. code is the folder's code. A folder with the same name under the same parent is 409 already_exists; batch_create_folders reuses it instead.
| Scope | folders:write |
| Asynchronous | No |
| MCP tool | create_folder |
| Portal permissions | create_folders |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | FolderCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json Folder or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | already_exists, conflict, idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
Folder
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Required | |
folder_id | string | Required | |
has_children | boolean | Required | Whether the folder has child folders the caller can see. |
name | string | Required | |
parent_folder_id | string or null | Required | null for a root folder |
path | string or null | Required | Current ancestor names joined by ->; null without View Folder Tree or current access to every ancestor. |
project | object or null | Required | The project the folder is mapped to; null when none, when the caller cannot see it, or without projects:read and View Projects. |
FolderCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
code | string or null | Optional | The folder's code (the Portal's Code box); a generated unique one when absent. |
name | string | Required | The folder's name. |
parent_folder_id | string or null | Optional | The folder to create it in; null for a top folder. |
security | string: parent, none, user, group or null | Optional | Who the folder is shared with besides you: parent (the default: the users and groups the parent has; a top folder has none to copy), group (your groups), none or user (only you, as the dialog's No security and User security give). |