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

# Edit and recover content with the REST API

> Read and replace a transcript paragraph, handle concurrent edits, and confirm with the user before undoing an edit or restoring generated content.

## How do I edit a transcript paragraph?

1. Find the paragraph’s `uuid` with `GET /v1/external/notes/{noteGuid}/paragraphs`.
2. Read the transcript with `GET /v1/external/notes/{noteGuid}/paragraphs/{paragraphUuid}/contents/transcript`. The current text is in `content.content`. Its version is in `revision`.
3. Append `/user-content` to the same path and send a `PUT`. In the JSON body, set `content` to the full replacement text and `expectedRevision` to the `revision` you just read. The response contains `edited` and the new `revision`. Every edit is recorded in the edit history.

Code `409035` (HTTP 409) means the content changed after you read it. Read it again and ask the user to confirm the proposed change. Never retry automatically with a new revision. Editing reads and writes on a paragraph locked by the free usage limit return `409036` (HTTP 409).

## Which state do I read before recovery?

Undo reverses the last saved edit. Reset restores the saved generated content and ends the previous undo history for the affected target. All paths below are relative to `/v1/external/notes/{noteGuid}`.

The paragraph list and the summary and document detail endpoints default `includeEditState` to `false`. For recovery, add `?includeEditState=true` to the GET paths shown below. If the transcript recovery snapshot is unavailable, the response preserves the transcript and omits `editState` from every paragraph.

| Target | GET path for the current state | Recovery action |
| - | - | - |
| Paragraph field | `/paragraphs/{paragraphUuid}/contents/{field}` | Append `:undo` to the field path to undo an edit. `/paragraphs/{paragraphUuid}:reset` resets the paragraph’s text and speaker assignments while preserving its summary. |
| Note transcript | `/paragraphs?includeEditState=true` | Check a paragraph’s `editState` for available actions. `/transcript:undoSpeakers` undoes the last speaker assignment. `/paragraphs:reset` resets the selected `kind` across all paragraphs. |
| Summary | `/summaries/{summaryId}?includeEditState=true` | Append `:undo` or `:reset` to the summary path. |
| Document | `/documents/{documentId}?includeEditState=true` | Append `:undo` to the document path to undo the last section edit. Use `:reset` to reset every section. |

Read the current state just before recovery and confirm the target and scope of the change with the user. Recovery can undo someone else’s edits. Send a `POST` with the `editState.etag` observed before confirmation in the JSON body’s `etag` field. Success returns the new state. Read the recovered content with `GET`.

The GET endpoints for editing a paragraph field or a document section return `revision` and `editState.etag` without a query parameter. For a section, pass `sections[].id` from the document as `sectionId` to `GET /documents/{documentId}/sections/{sectionId}`. Both reading and editing a section require note edit permission. A section read returns 403 for a `VIEWER` in the same workspace and 404 when requested from another workspace.

[Required scopes by API](https://docs.tiro.ooo/en/developers/fundamentals/authentication.md) · [Edit and recover content with MCP](https://docs.tiro.ooo/en/developers/mcp/tools/edit-content.md)


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