Skip to content
Navigation

Save a session back as a file

Exports the session as a .docx — tracked changes and all — and stores it as a new file next to the document it came from.

{ "fileId": "msa.docx" }

fileId is the file the session was opened on, by id or by name. It must BE that file: a session that was opened on a different document answers 409 redline_file_mismatch. The new file is named <original>.redlined.docx and carries parentFileId pointing back at it.

A NAME is resolved in the org API workspace only — there is no cross-space name index. A file that lives in an explicit space must be flushed by its id.

The session stays open: flush as often as you like, then let it expire or delete it.

Learn more: Redlining

POST
https://api.cloudraker.com/v1/redline/{sessionId}/flush
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

  • fileId
    string
    required
    minLength: 1

Returns

201

The saved file.

JSON
  • object
    string
    required
  • id
    string
    required
  • name
    string
    required
  • mimeType
    string
    required
  • status
    uploading
    or
    processing
    or
    ready
    or
    failed
    required
  • createdAt
    string
    required
  • parentFileId
    optional
    string
  • metadata
    optional
    map of
    string
  • error
    optional
    string
  • uploadUrl
    optional
    string
  • uploadExpiresAt
    optional
    string
  • urls
    optional
    object
    • content
      optional
      string
    • markdown
      optional
      string
    • json
      optional
      string

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

Unknown session or file.

409

The session was opened on another file (redline_file_mismatch).

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