Web SDKv1.0.0

AnnotationsApi.setStatus()

Sets a reviewer's (options.author) status on the comment with that id. The entry's text is Acrobat's "Accepted set by Ann", or the status alone without an author. update() and delete() act on a status entry as on any annotation, rewriting that reviewer's history. Needs the annotations feature.
methodCommentssince 1.0.0

Signature

setStatus(id: string, status: ReviewStatus, options?: StatusOptions): Promise<string>

Parameters

ParameterTypeDescription
idstringThe comment's id.
statusReviewStatus'accepted', 'rejected', 'cancelled', 'completed', or 'none' to clear theirs.
options?StatusOptionsauthor (the reviewer; omitted, '') and invalidateSignatures.

Returns

Promise<string> The status entry's id.

Throws

  • INVALID_ARGUMENT — an id no annotation has, a status not in ReviewStatus, or the annotation is not a comment.
  • PAGE_ERROR — the status could not be written.
  • FEATURE_NOT_LICENSED — the license lacks annotations.
  • DOCUMENT_CLOSED — the document has been closed.
  • INVALID_STATE — a certified document whose certification forbids it, unless options.invalidateSignatures beside options.author; or a progressive document still downloading.

Example

TypeScript
await doc.annotations.setStatus(id, 'accepted', { author: 'Ann' });

More in AnnotationsApi