# Approve a pending document review.

`POST /api/plugins/docs/documents/{id}/review/approve`

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (path, string, required)
  Type: string

Request body: application/json (required)

Type: object

Schema: [ApproveReviewDTO](https://sourcey-gauzy.pages.dev/api-reference/models/approvereviewdto/index.md)

- `note` (optional)
  Type: string

Responses:

- 200: Review approved.

- 409: The document is not pending review.

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/plugins/docs/documents/string/review/approve' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "note": "string"
}'
```

### JavaScript

```javascript
const body = `{
  "note": "string"
}`;

const response = await fetch('http://localhost:3000/api/plugins/docs/documents/string/review/approve', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "note": "string"
}'''

response = requests.post(
    'http://localhost:3000/api/plugins/docs/documents/string/review/approve',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
