Create an API folder and verify its parent
Create one folder through the REST API, interpret reused path segments correctly, and verify the returned child beneath the intended parent folder.
Last reviewed
Folder creation accepts either one name or a nested path. The response distinguishes the leaf that now exists from the path segments that this request actually inserted.

Access requirements
Use a Full access key with the REST API surface so the same credential may create and then read. Upload only can call the create route but cannot perform the verification GET. A key may be pinned to the target workspace; adding a folder anchor disables REST use.
The member role needs create_folders for the mutation and access_files for the child-folder listing.
Steps
- Choose a visible parent folder and copy its
fld_…identifier, or plan to omitparent_idwhen creating at workspace root. - Pick a unique one-segment test name, no longer than 100 characters, so the expected
created_countis unambiguous. - Send
POST /api/folderswith{ "workspace_id":"wks_…", "parent_id":"fld_…", "name":"API verification" }. - Require HTTP 201 and record
folder.id,folder.parent_id,created_count, and thecreated_foldersarray from the response. - Call
GET /api/folders/children?workspace_id=wks_…&parent_id=fld_…; omitparent_idonly when the chosen parent is workspace root. - Find exactly one returned folder whose id equals
folder.id, then compare its name and parent before retaining or trashing the test folder.
Path behavior
The create route splits both / and \, so Reports/2026/October can create several levels in one request. The complete path is capped at 500 characters and each segment at 100. Existing segments are reused: a successful retry can return created_count:0, and a mixed path can report fewer created folders than segments.
The 201 body contains the leaf as folder:{id,name,parent_id,workspace_id}. created_folders contains only rows inserted by that request. Creation changes the workspace tree immediately; removing the test later is a separate mutation.
Expected result
The leaf identifier from the create response appears as a direct child of the requested parent. A unique single-segment test returns created_count:1 and one entry in created_folders.
Troubleshooting
workspace_id is required or Folder name is required means the body is incomplete. Membership and role failures read Not a member of this workspace or You don't have permission to create folders. Missing and locked destinations return Parent folder not found or a structured folder_locked response. A race can produce 409 A folder named "<part>" already exists here; list the parent before deciding whether to retry.

Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.