Undo Tag update
POST
/api/v1/tags/rewrites/{id}/undo
const url = 'https://example.com/api/v1/tags/rewrites/example/undo';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/tags/rewrites/example/undo \ --header 'Authorization: Bearer <token>'Restore saved Markdown and Sidecar bytes, including stopped operations, while keeping later edits or removals. Route: /api/v1/tags/rewrites/{id}/undo. Inputs: id. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Media typeapplication/json
Source text stays private in Home journals; clients receive only progress.
object
can_undo
required
boolean
conflicts
required
integer
current
integer | null format: int64
id
required
string
state
required
string
total
integer | null format: int64
Examplegenerated
{ "can_undo": true, "conflicts": 1, "current": 1, "id": "example", "state": "example", "total": 1}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}