Skip to content
Navigation

Edit a session

Applies one edit to the document, as a tracked change by default.

{ "op": "replace", "anchorText": "thirty (30) days", "replacement": "sixty (60) days" }

Four operations: replace and deleteText act on anchor text, fill applies a list of replacements in one pass, and insertMarkdown adds new paragraphs before or after an anchor (or at the end). Set tracked: false to write the change silently instead.

The response carries the new revision and the ids of the tracked changes the edit produced. Those ids are positional and only valid at that revision.

Learn more: Redlining

POST
https://api.cloudraker.com/v1/redline/{sessionId}/edits
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • sessionId
    string
    required
    minLength: 1

Request body JSON required

  • op
    replace
    or
    insertMarkdown
    or
    fill
    or
    deleteText
    required
  • anchorText
    optional
    string
  • occurrence
    optional
    integer
    maximum: 9007199254740991
  • all
    optional
    boolean
  • replacement
    optional
    string
  • markdown
    optional
    string
  • position
    optional
    before
    or
    after
    or
    end
  • fields
    optional
    array of
    object
    • anchorText
      string
      required
    • replacement
      string
      required
    • occurrence
      optional
      integer
      maximum: 9007199254740991
    • all
      optional
      boolean
  • tracked
    optional
    boolean
  • author
    optional
    string

Returns

200

The edit outcome.

JSON
  • revision
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • summary
    object
    required
    • paragraphCount
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • comments
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • trackedChanges
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991

400

The edit is malformed, or its anchor matched nothing.

404

Unknown or expired session.

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.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close