{
  "opencollection": "1.0.0",
  "info": {
    "name": "iTwin Storage API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://ims.bentley.com/connect/authorize",
      "accessTokenUrl": "https://ims.bentley.com/connect/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Folders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bentley.com/storage/folders/:folderId/folders",
            "params": [
              {
                "name": "folderId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Folders"
        },
        {
          "info": {
            "name": "Create Folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bentley.com/storage/folders/:folderId/folders",
            "params": [
              {
                "name": "folderId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Folder"
        }
      ]
    },
    {
      "info": {
        "name": "Files",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Files",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bentley.com/storage/folders/:folderId/files",
            "params": [
              {
                "name": "folderId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Files"
        },
        {
          "info": {
            "name": "Create File",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bentley.com/storage/folders/:folderId/files",
            "params": [
              {
                "name": "folderId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create File"
        },
        {
          "info": {
            "name": "Get Files",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bentley.com/storage/files/:fileId",
            "params": [
              {
                "name": "fileId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Files"
        },
        {
          "info": {
            "name": "Update File",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.bentley.com/storage/files/:fileId",
            "params": [
              {
                "name": "fileId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update File"
        },
        {
          "info": {
            "name": "Delete File",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.bentley.com/storage/files/:fileId",
            "params": [
              {
                "name": "fileId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete File"
        }
      ]
    },
    {
      "info": {
        "name": "Versions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Versions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bentley.com/storage/files/:fileId/versions",
            "params": [
              {
                "name": "fileId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Versions"
        },
        {
          "info": {
            "name": "Create Version",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bentley.com/storage/files/:fileId/versions",
            "params": [
              {
                "name": "fileId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Version"
        }
      ]
    },
    {
      "info": {
        "name": "Content",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bentley.com/storage/files/:fileId/content",
            "params": [
              {
                "name": "fileId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Content"
        },
        {
          "info": {
            "name": "Create Content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bentley.com/storage/files/:fileId/content",
            "params": [
              {
                "name": "fileId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Content"
        }
      ]
    },
    {
      "info": {
        "name": "Trash",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Trash",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bentley.com/storage/recyclebin"
          },
          "docs": "Get Trash"
        },
        {
          "info": {
            "name": "Create Trash",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.bentley.com/storage/recyclebin",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Trash"
        }
      ]
    }
  ],
  "bundled": true
}