Outline · Example Payload

Documentsimport

Documents

Documentsimport is an example object payload from Outline, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdpathmethodsummarytagsrequestSchema

Example Payload

Raw ↑
{
  "operationId": "documentsImport",
  "path": "/documents.import",
  "method": "POST",
  "summary": "Import a file as a document",
  "tags": [
    "Documents"
  ],
  "requestSchema": {
    "type": "object",
    "properties": {
      "file": {
        "type": "object",
        "description": "Plain text, markdown, docx, csv, tsv, and html format are supported."
      },
      "collectionId": {
        "type": "string",
        "format": "uuid",
        "nullable": true,
        "description": "Identifier for the collection to import into. One of collectionId or parentDocumentId is required."
      },
      "parentDocumentId": {
        "type": "string",
        "format": "uuid",
        "nullable": true,
        "description": "Identifier for the parent document to import under. One of collectionId or parentDocumentId is required."
      },
      "publish": {
        "type": "boolean",
        "description": "Whether to publish the imported document"
      }
    },
    "required": [
      "file"
    ]
  }
}