{
  "opencollection": "1.0.0",
  "info": {
    "name": "Documents",
    "version": "2.0.1"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create document folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{region}-api.dotdigital.com/v2/document-folders/:id",
            "headers": [
              {
                "name": "x-ddg-integration-token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "0",
                "type": "path",
                "description": "The id of an existing folder to create the new folder within"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new document folder"
        },
        {
          "info": {
            "name": "Get document folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{region}-api.dotdigital.com/v2/document-folders",
            "headers": [
              {
                "name": "x-ddg-integration-token",
                "value": ""
              }
            ]
          },
          "docs": "Fetches the document folder tree structure"
        },
        {
          "info": {
            "name": "Get documents in folder",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{region}-api.dotdigital.com/v2/document-folders/:id/documents",
            "headers": [
              {
                "name": "x-ddg-integration-token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "0",
                "type": "path",
                "description": "The id of an existing folder"
              }
            ]
          },
          "docs": "Gets all uploaded documents in a folder"
        },
        {
          "info": {
            "name": "Upload document",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{region}-api.dotdigital.com/v2/document-folders/:id/documents",
            "headers": [
              {
                "name": "x-ddg-integration-token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "0",
                "type": "path",
                "description": "The id of an existing folder to create the new folder within"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Upload a document to a specified folder using form data"
        }
      ]
    }
  ],
  "bundled": true
}