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

Get or create folders, several levels at once.

POST/api/v1/folders/batch-createfolders:write
注記

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

Each item is a folder named name under parent_folder_id (null: a top folder) or under the folder an earlier item made or found (parent_item_index, from 0), so a whole path is one call. A folder that already exists there is answered 200 with that folder and nothing changes; a new one 201 with its grants as create_folder gives them (security: parent by default, group, none or user) and the code it was given. An existing folder you cannot see is that item's 409, never handed back. Needs Create Folders and read access to every named parent. atomic is required.

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

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonBatchBodyOfv1FolderEnsureItemInput

応答​

ステータス説明本文
200Success.application/json object または 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
409conflict, 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 のコードです。各コードからそのページに移動できます。

スキーマ​

BatchBodyOfv1FolderEnsureItemInput​

フィールド型必須説明
atomicboolean必須
itemsFolderEnsureItemInput の配列必須

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.

FolderEnsureItemInput​

フィールド型必須説明
codestring または null任意The code of a folder this item creates; a generated unique one when absent. An existing folder keeps its code.
namestring必須The folder's name.
parent_folder_idstring または null任意The folder to find or create it in; null or absent for a top folder, unless parent_item_index names one.
parent_item_indexinteger または null任意The position, from 0, of an earlier item of this request whose folder is the parent: a path in one call. Not with parent_folder_id.
securitystring: parent, none, user, group または null任意Who a folder this item creates is shared with besides you: parent (the default), group, none or user, as create_folder.