> For the complete documentation index, see [llms.txt](https://help.mimeeq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.mimeeq.com/api/files/create-directory.md).

# Create Directory

Create an empty media-library directory.

Use this to organize media before uploading files. Success returns 204 with no response body; list the parent directory to inspect its contents.

### Behaviour

System folders cannot be created.

Requires the `files:write` scope.

```json
{"openapi":"3.1.0","info":{"title":"Mimeeq External API","version":"1.1.0"},"tags":[{"name":"Files","description":"Manage files and directories in your Mimeeq media library. Use these resources for media assets rather than product records, gallery definitions or quotation records.\n\nBrowse a directory, search its descendants, inspect an asset, upload a file, or organize files through rename, move, copy and soft-delete operations. Download selected library entries as a ZIP, or use Download PoD Assets for artwork attached to a saved product configuration.\n\n## What you can do\n\n| Task | Reference |\n| --- | --- |\n| Add a new directory | [Create Directory](https://help.mimeeq.com/developers/files/create-directory) |\n| Find available files | [List Files](https://help.mimeeq.com/developers/files/list-files) |\n| Rename file or directory | [Rename File or Directory](https://help.mimeeq.com/developers/files/rename-file-or-directory) |\n| Remove file | [Delete File](https://help.mimeeq.com/developers/files/delete-file) |\n| Move files or directories | [Move Files or Directories](https://help.mimeeq.com/developers/files/move-files-or-directories) |\n| Copy files or directories | [Copy Files or Directories](https://help.mimeeq.com/developers/files/copy-files-or-directories) |\n| Download pod assets | [Download PoD Assets](https://help.mimeeq.com/developers/files/download-pod-assets) |\n| Upload file | [Upload File](https://help.mimeeq.com/developers/files/upload-file) |\n| Download files as zip | [Download Files as ZIP](https://help.mimeeq.com/developers/files/download-files-as-zip) |\n| Find matching files | [Search Files](https://help.mimeeq.com/developers/files/search-files) |\n| Read one file details | [Get File Details](https://help.mimeeq.com/developers/files/get-file-details) |\n\n## Before you start\n\nYour API key needs `files:read` to read these resources. Use `files:write` for write operations. Soft-delete requires `files:delete`.\n\n## Important behaviour\n\nUse directory paths and asset IDs returned by the library. List shows immediate children; Search finds matching entries below a directory. Upload uses multipart/form-data and accepts one file up to 25 MiB. Root and system directories have operation-specific restrictions. File deletion needs files:delete, separately from files:write. A PoD download needs a saved configuration `shortCode`, not a product ID."}],"servers":[{"url":"https://admin.mimeeqapi.com","description":"Production API"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key sent as a bearer token (mk_live_… / mk_test_…)."}},"schemas":{"PublicError":{"description":"An API error response. Use code and the HTTP status to classify the failure, message and optional details for context, and requestId when reporting it. Edge firewall responses may omit requestId.","type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","description":"Present on every error the API itself returns; absent when the edge firewall rejected the request."},"details":{"description":"Optional error-specific details (e.g. per-field validation reasons)."}}},"FilesCreateRequest":{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryPath":{"type":"string","maxLength":1024},"name":{"type":"string","minLength":1,"maxLength":1024}},"required":["type","name"],"additionalProperties":false,"description":"Data schema used by Create Directory (POST /v1/files). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ."}}},"paths":{"/v1/files":{"post":{"summary":"Create Directory","tags":["Files"],"description":"Create an empty media-library directory.\n\nUse this to organize media before uploading files. Success returns 204 with no response body; list the parent directory to inspect its contents.\n\n## Behaviour\n\nSystem folders cannot be created.\n\nRequires the `files:write` scope.","responses":{"204":{"description":"No content.","headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"400":{"description":"Invalid request data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}}},"403":{"description":"The API key lacks the required scope (`scope_denied`), or the operation is not permitted for this account (`operation_not_permitted`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"429":{"description":"The API key exceeded its request rate (`rate_limit_exceeded`) or its monthly quota (`quota_exceeded`). Both carry `Retry-After`; the `RateLimit-*` headers accompany `rate_limit_exceeded` only, since a spent quota says nothing about the bucket.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesCreateRequest"}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.mimeeq.com/api/files/create-directory.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
