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

Grant folders to users or groups in one batch.

POST/api/v1/folders/batch-grant-accesspermissions:admin
注記

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

Each item grants one folder to one principal; include_subfolders also grants every folder beneath it. Folders the principal already holds are skipped, and an item with nothing new is answered 200 unchanged. The documents of the changed folders are re-synced. atomic is required. A user item needs Grant Folder User Access and View Users, a group item Grant Folder Group Access and View Groups. The answer lists the folders granted only to a caller with View Folder Security; without it the answer is a write receipt.

スコープpermissions:admin (機密性の高いスコープ)
非同期いいえ
MCP ツールbatch_grant_folder_access

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonBatchBodyOfv1FolderGrantBatchItemInput

応答​

ステータス説明本文
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
409idempotency_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 のコードです。各コードからそのページに移動できます。

スキーマ​

BatchBodyOfv1FolderGrantBatchItemInput​

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

FolderGrantBatchItemInput​

フィールド型必須説明
folder_idstring必須
group_idstring または null任意
include_subfoldersboolean任意Also grant (or revoke) every folder beneath this one, however deep.
user_idstring または null任意Give exactly one of user_id and group_id.

FolderGrantBatchResult​

フィールド型必須説明
folder_idstring必須
folder_idsstring の配列必須The folders whose grant this item changed, the item's folder and its subfolders: for a grant the ones the principal did not hold, for a revoke the ones it held.
principalGrantPrincipal必須

GrantPrincipal​

フィールド型必須説明
group_idstring または null必須
typestring必須user or group; everyone in the access listing for what is open to all.
user_idstring または null必須