メインコンテンツまでスキップ

Create a folder.

POST/api/v1/foldersfolders:write
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

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.

スコープfolders:write
非同期いいえ
MCP ツールcreate_folder
Portal の権限create_folders

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonFolderCreateInput

応答​

ステータス説明本文
201Success.application/json Folder または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

Folder​

フィールド型必須説明
codestring必須
folder_idstring必須
has_childrenboolean必須Whether the folder has child folders the caller can see.
namestring必須
parent_folder_idstring または null必須null for a root folder
pathstring または null必須Current ancestor names joined by ->; null without View Folder Tree or current access to every ancestor.
projectobject または null必須The project the folder is mapped to; null when none, when the caller cannot see it, or without projects:read and View Projects.

FolderCreateInput​

フィールド型必須説明
codestring または null任意The folder's code (the Portal's Code box); a generated unique one when absent.
namestring必須The folder's name.
parent_folder_idstring または null任意The folder to create it in; null for a top folder.
securitystring: parent, none, user, group または null任意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).