# AnnotationsApi.setStatus()

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

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.

- Kind: method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | `string` | The comment's id. |
| `status` | `ReviewStatus` | `'accepted'`, `'rejected'`, `'cancelled'`, `'completed'`, or `'none'` to clear theirs. |
| `options?` | `StatusOptions` | `author` (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.

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

Part of [AnnotationsApi](https://kernstra.com/docs/web-sdk/api/doc-annotations) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/doc-annotations/setstatus
