# Solve or Restore a Comment

Solves or restores a comment on a document in Docs.

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/drive/v1/files/:file_token/comments/:comment_id
HTTP Method | PATCH
Rate Limit | [1000 per minute & 50 per second](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.**<br>Enable any scope from the list | View, comment, edit, and manage Docs(docs:doc)<br>View, comment, and export Docs(docs:doc:readonly)<br>Modify comment in document(docs:document.comment:update)<br>Reply, edit, delete comment in document(docs:document.comment:write_only)<br>View, comment, edit, and manage all files in My Space(drive:drive)<br>View, comment, and download all files in My Space(drive:drive:readonly)<br>View, comment, edit, and manage Sheets(sheets:spreadsheet)<br>View, comment, and export Sheets(sheets:spreadsheet:readonly)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>or<br>`user_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer u-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Path parameters

Parameter | Type | Description
---|---|---
file_token | string | Token of the document<br>**Example value**: "doccnGp4UK1UskrOEJwBXd3****"
comment_id | string | Comment ID<br>**Example value**: "6916106822734578184"

### Query parameters

Parameter | Type | Required | Description
---|---|---|---
file_type | string | Yes | Type of the document<br>**Example value**: doc<br>**Optional values are**:<br>- doc：Doc<br>- docx：Upgraded Docs<br>- sheet：Sheet<br>- file：File<br>- slides：Slides

### Request body

Parameter | Type | Required | Description
---|---|---|---
is_solved | boolean | Yes | Icon that indicates whether the comment is solved.<br>**Example value**: true

### Request body example
```json
{
    "is_solved": true
}
```

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {}
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
400 | 1069301 | fail | Please try again. If the problem persists, contact the oncall personnel of the related service party.
400 | 1069302 | param error | Check whether the parameter is valid.
403 | 1069303 | forbidden | Check whether you have the permission to comment on the document.
400 | 1069304 | docs had been deleted | Check whether the document to comment on has been deleted.
400 | 1069305 | docs not exist | Check whether you have access to the document to comment on.
400 | 1069306 | content review not pass | Check whether the comment contains invalid content.
404 | 1069307 | not exist | Check whether you have access to the document to comment on and whether the person that is @mentioned by the comment or the document in Docs to comment on exists.
400 | 1069308 | exceeded limit | The comment data has reached the limit. For more information, contact the Customer Service.
400 | 1069399 | internal error | Please try again. If the problem persists, contact the oncall personnel of the related service party.

