---
title: "Accept one tracked change"
---

> 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.

# Accept one tracked change

Path: CloudRaker Paperwork API › Redline

`POST /v1/redline/{sessionId}/suggestions/{tcId}/accept`

Accepts a single tracked change, by its `tc` id.

`?revision` is the session revision you read the `tc` ids at. Suggestion ids are POSITIONAL — any edit renumbers them — so passing it turns a stale id into a `409 revision_conflict` instead of a silent hit on the wrong change.

**Learn more:** [Redlining](https://docs.cloudraker.com/paperwork/developers/file-tools)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `sessionId` (`acceptRedlineSuggestion.path.sessionId`; string, required)
  - minLength 1
- `tcId` (`acceptRedlineSuggestion.path.tcId`; string, required)
  - minLength 1

## Query parameters

- `revision` (`acceptRedlineSuggestion.query.revision`; integer, optional)
  - min 0; max 9007199254740991

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/v1/redline/<sessionId>/suggestions/<tcId>/accept' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/redline/<sessionId>/suggestions/<tcId>/accept';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

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/v1/redline/<sessionId>/suggestions/<tcId>/accept"

headers = {"Authorization": "Bearer <token>"}

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

print(response.text)
```

## Responses

### 200

The new revision.

#### Example

```json
{
  "revision": -9007199254740991,
  "summary": {
    "paragraphCount": -9007199254740991,
    "comments": -9007199254740991,
    "trackedChanges": -9007199254740991
  }
}
```

- `revision` (`acceptRedlineSuggestion.response.200.revision`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `summary` (`acceptRedlineSuggestion.response.200.summary`; object, required)
  - `paragraphCount` (`acceptRedlineSuggestion.response.200.summary.paragraphCount`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `comments` (`acceptRedlineSuggestion.response.200.summary.comments`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `trackedChanges` (`acceptRedlineSuggestion.response.200.summary.trackedChanges`; integer, required)
    - min -9007199254740991; max 9007199254740991

### 400

Validation Error

#### Example

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

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

### 404

Unknown session or tracked change.

### 409

The id was read at an older revision (`revision_conflict`).

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`acceptRedlineSuggestion.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`acceptRedlineSuggestion.response.429.message`; string, required)
- `retryable` (`acceptRedlineSuggestion.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`acceptRedlineSuggestion.response.429.requestId`; string, required)
- `docUrl` (`acceptRedlineSuggestion.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/redline/accept-redline-suggestion/index.md
