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

Set a group's access to a document.

PATCH/api/v1/documents/{document_id}/access-grants/groups/{group_id}permissions:admin
注記

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

Creates or changes the group's direct grant on the document: can_edit true for edit, false for read. Needs Grant Document Access and read access to the document.

スコープpermissions:admin (機密性の高いスコープ)
非同期いいえ
MCP ツールupdate_document_group_access_grant
Portal の権限grant_document_access

パラメーター​

名前場所型必須説明
document_idpathstring必須
group_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonDocumentGroupAccessSetInput
application/merge-patch+jsonDocumentGroupAccessSetInput

応答​

ステータス説明本文
200Success.application/json DocumentGroupAccess または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

DocumentGroupAccess​

フィールド型必須説明
can_editboolean必須true for edit access, false for read access.
group_idstring必須

DocumentGroupAccessSetInput​

フィールド型必須説明
can_editboolean または null任意true to grant edit access, false for read access.