---
title: "Follow a document or resolve a discussion"
---

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

# Follow a document or resolve a discussion

Path: CloudRaker Workspace API › Documents

`POST /workspace/sessions/{sessionId}/artifacts/{artifactId}/review`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `sessionId` (`updateWorkspaceDocumentReview.path.sessionId`; string, required)
- `artifactId` (`updateWorkspaceDocumentReview.path.artifactId`; string, required)

## Request body

_Required._

- `following` (`updateWorkspaceDocumentReview.following`; boolean, optional)
- `threadId` (`updateWorkspaceDocumentReview.threadId`; string, optional)
  - minLength 1; maxLength 128
- `resolved` (`updateWorkspaceDocumentReview.resolved`; boolean, optional)

## Example request

```json
{
  "following": true,
  "threadId": "string",
  "resolved": true
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/workspace/sessions/<sessionId>/artifacts/<artifactId>/review' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "following": true,
  "threadId": "string",
  "resolved": true
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/workspace/sessions/<sessionId>/artifacts/<artifactId>/review';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({following: true, threadId: 'string', resolved: true})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/workspace/sessions/<sessionId>/artifacts/<artifactId>/review"

payload = {
    "following": True,
    "threadId": "string",
    "resolved": True
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Updated review state.

#### Example

```json
{
  "data": {
    "following": true,
    "threads": [
      {
        "id": "string",
        "resolvedAt": "string"
      }
    ]
  }
}
```

- `data` (`updateWorkspaceDocumentReview.response.200.data`; object, required)
  - `following` (`updateWorkspaceDocumentReview.response.200.data.following`; boolean, required)
  - `threads` (`updateWorkspaceDocumentReview.response.200.data.threads`; array<object>, required)
    - `id` (`updateWorkspaceDocumentReview.response.200.data.threads.id`; string, required)
    - `resolvedAt` (`updateWorkspaceDocumentReview.response.200.data.threads.resolvedAt`; string | null, required)

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`updateWorkspaceDocumentReview.response.400.success`; boolean, required)
  - one of `false`
- `error` (`updateWorkspaceDocumentReview.response.400.error`; array<unknown>, required)
- `data` (`updateWorkspaceDocumentReview.response.400.data`; unknown, required)

### 404

No such session or artifact, or the caller may not see it.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`updateWorkspaceDocumentReview.response.404.error`; string, required) — The sentence a human reads.
- `error_code` (`updateWorkspaceDocumentReview.response.404.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`updateWorkspaceDocumentReview.response.404.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`updateWorkspaceDocumentReview.response.404.issues.path`; string, required)
  - `code` (`updateWorkspaceDocumentReview.response.404.issues.code`; string, required)
  - `message` (`updateWorkspaceDocumentReview.response.404.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/documents/update-workspace-document-review/index.md
