{ "opencollection": "1.0.0", "info": { "name": "Aloft API V1 Accounts Files by Resource API", "version": "1.0.0" }, "items": [ { "info": { "name": "Files by Resource", "type": "folder" }, "items": [ { "info": { "name": "Get all files", "type": "http" }, "http": { "method": "GET", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" }, { "name": "order_by", "value": "", "type": "query", "description": "The field to order the data by" }, { "name": "order", "value": "", "type": "query" }, { "name": "document_type", "value": "", "type": "query", "description": "File type. Can be: document, flight-log or media" }, { "name": "page", "value": "", "type": "query" }, { "name": "page_length", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get all files for the provided resource and identifier" }, { "info": { "name": "Upload a file", "type": "http" }, "http": { "method": "POST", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" } ], "body": { "type": "multipart-form", "data": [] }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Upload a file and create a file association" }, { "info": { "name": "Get a file", "type": "http" }, "http": { "method": "GET", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files/:id", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" }, { "name": "file_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get a file associated with the given resource" }, { "info": { "name": "Download a file", "type": "http" }, "http": { "method": "GET", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files/:file_id/download", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" }, { "name": "file_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Download a file" }, { "info": { "name": "Thumbnail of a file", "type": "http" }, "http": { "method": "GET", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files/:file_id/thumbnail", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" }, { "name": "file_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get thumbnail of a file" }, { "info": { "name": "Download multiple files", "type": "http" }, "http": { "method": "GET", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files/bulk", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" }, { "name": "id[]", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Download a compressed archive of multiple files" }, { "info": { "name": "View a file", "type": "http" }, "http": { "method": "GET", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files/:file_id/view", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" }, { "name": "file_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "View a file" }, { "info": { "name": "Update a file", "type": "http" }, "http": { "method": "PUT", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files/:file_id", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" }, { "name": "file_id", "value": "", "type": "path" } ], "body": { "type": "multipart-form", "data": [] }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update a file and/or association" }, { "info": { "name": "Delete a file association", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.aloft.ai/v1/account/:account_id/:resource/:resource_id/files/:file_id", "params": [ { "name": "account_id", "value": "", "type": "path" }, { "name": "resource", "value": "", "type": "path" }, { "name": "resource_id", "value": "", "type": "path" }, { "name": "file_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete a file association" } ] } ], "bundled": true }