Skip to main content

Set a group's access to a document.

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

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.

Scopepermissions:admin (sensitive)
AsynchronousNo
MCP toolupdate_document_group_access_grant
Portal permissionsgrant_document_access

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
group_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonDocumentGroupAccessSetInput
application/merge-patch+jsonDocumentGroupAccessSetInput

Responses​

StatusDescriptionBody
200Success.application/json DocumentGroupAccess or 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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

DocumentGroupAccess​

FieldTypeRequiredDescription
can_editbooleanRequiredtrue for edit access, false for read access.
group_idstringRequired

DocumentGroupAccessSetInput​

FieldTypeRequiredDescription
can_editboolean or nullOptionaltrue to grant edit access, false for read access.