Outline · Example Payload

Documentsdrafts

Documents

Documentsdrafts 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": "documentsDrafts",
  "path": "/documents.drafts",
  "method": "POST",
  "summary": "List all draft documents",
  "tags": [
    "Documents"
  ],
  "requestSchema": {
    "allOf": [
      {
        "$ref": "#/components/schemas/Pagination"
      },
      {
        "$ref": "#/components/schemas/Sorting"
      },
      {
        "type": "object",
        "properties": {
          "collectionId": {
            "type": "string",
            "description": "A collection to search within",
            "format": "uuid"
          },
          "dateFilter": {
            "type": "string",
            "description": "Any documents that have not been updated within the specified period will be filtered out",
            "example": "month",
            "enum": [
              "day",
              "week",
              "month",
              "year"
            ]
          }
        }
      }
    ]
  }
}