Skip to content
Navigation

Export a document as a Word file with tracked changes

Writes the difference between the ORIGINAL .docx this document was imported from and its current markdown into that Word file as tracked changes, and files the result as a <name>.redlined.docx artifact. Remaining CriticMarkup comments become Word comments. A document that was not imported from a Word file answers 409 no_source_document. Authorization: the same gate as every session route — work_session:read (or comment to write) on the session, OR space:contribute on one of its linked spaces; a desk session only for its owner. Any denial is 404.

POST
https://api.cloudraker.com/workspace/sessions/{sessionId}/artifacts/{artifactId}/export
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
  • artifactId
    string
    required

Request body JSON required

  • format
    string
    required

Returns

201

The redlined Word artifact.

JSON
  • data
    object
    required
    • id
      string
      required
    • sessionId
      string
      required
      maxLength: 128 · minLength: 1
    • fileId
      string
      required
    • version
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • name
      string
      required
    • mime
      string
      required
    • state
      draft
      or
      committed
      required
    • producedByTurn
      string | null
      required
    • committedTo
      required

      Any of the following:

      • object
        • spaceId
          string
          required
        • fileId
          string
          required
        • at
          string
          required
          format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        • by
          string
          required
      • null

400

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

404

No such session or artifact, or the caller may not see it.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

409

no_source_document — the document came from no Word file; artifact_not_ready.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

422

redline_anchor_not_found — the original no longer contains a paragraph the diff edits; nothing was written.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close