> ## Documentation Index
> Fetch the complete documentation index at: https://velt.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reopen Comment

Use this API to put a Resolved comment of a check back to Open (verified or not). The resolve and verify fields are cleared, so a later resolve is verified again.

A [rejected](https://velt.dev/docs/api-reference/rest-apis/v2/agents/checks/comments/reject.md) comment is not reopened: it stays rejected, and the call still answers `{ reopened: true }`. A person's reject cannot be undone over the API; an excluded check's rejects are undone by [Include Check](https://velt.dev/docs/api-reference/rest-apis/v2/agents/checks/include.md).

Reopen is idempotent: a comment that is already Open or In progress keeps its status.

The comment can be an agent comment, or a person's comment [attached](https://velt.dev/docs/api-reference/rest-apis/v2/agents/checks/comments/attach.md) to a check. A person's comment that is not attached to a check is refused. See [Statuses](https://velt.dev/docs/api-reference/rest-apis/v2/agents/checks/overview.md#statuses).

# Endpoint

`POST https://api.velt.dev/v2/agents/checks/comments/reopen`

# Headers

**x-velt-api-key** `string` *required*

Your API key.

**x-velt-auth-token** `string` *required*

Your [Auth Token](https://velt.dev/docs/security/auth-tokens.md).

# Body

#### Params

**data** `object` *required*

**properties**

**organizationId** `string` *required*

1 to 512 characters. The organization of the project.

**documentId** `string` *required*

1 to 512 characters. The document of the project.

**annotationId** `string` *required*

The comment annotation id. 1 to 512 characters, no `/`, and not `.` or `..`.

**userId** `string` *required*

1 to 512 characters. Recorded as the person who reopened the comment.

The schema uses `.strict()`: unknown fields are rejected.

## **Example Requests**

```JSON theme={null}
{
  "data": {
    "organizationId": "org_acme",
    "documentId": "acme-marketing-site",
    "annotationId": "K7mQ2xR9vB4wLdT1sYpN",
    "userId": "user_sam"
  }
}
```

# Response

#### Success Response

```JSON theme={null}
{
  "result": {
    "status": "success",
    "message": "Comment reopened",
    "data": {
      "reopened": true
    }
  }
}
```

#### Failure Response

```JSON theme={null}
{
  "error": {
    "message": "Comment not found",
    "status": "NOT_FOUND",
    "details": {
      "reason": "CHECKS_COMMENT_NOT_FOUND"
    }
  }
}
```

**Errors:** `INVALID_ARGUMENT` (a body outside the schema: a missing `annotationId` or `userId`, or an unknown field) / `NOT_FOUND` with `CHECKS_COMMENT_NOT_FOUND` (no such comment in the project) / `FAILED_PRECONDITION` with `CHECKS_NOT_AGENT_COMMENT` (a person's comment not attached to a check).

```js theme={null}
{
  "result": {
    "status": "success",
    "message": "Comment reopened",
    "data": {
      "reopened": true
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.