Skip to main content

Replace who may see or change an annotation.

POST/api/v1/annotations/{annotation_id}/access-grants/replaceannotations:write

The new list replaces the old one. It must include you or one of your groups, or you would lose access. If-Match compares the annotation's stored columns.

Scopeannotations:write
AsynchronousNo
MCP toolreplace_annotation_access_grants
Portal permissionsmanage_annotation_security

Parameters​

NameInTypeRequiredDescription
annotation_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonAccessGrantSetInputInput

Responses​

StatusDescriptionBody
200Success.application/json AccessGrantSet 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​

AccessGrant​

FieldTypeRequiredDescription
permissionstringRequiredread or write.
principalobject or object or objectRequired

AccessGrantInputInput​

FieldTypeRequiredDescription
permissionstringOptionalread or write; read when absent.
principalobject or objectRequired

AccessGrantSet​

FieldTypeRequiredDescription
itemsarray of AccessGrantRequired

AccessGrantSetInputInput​

FieldTypeRequiredDescription
itemsarray of AccessGrantInputInputRequired