{ "opencollection": "1.0.0", "info": { "name": "API Reference subpackage_accounts subpackage_documents API", "version": "1.0.0" }, "items": [ { "info": { "name": "subpackage_documents", "type": "folder" }, "items": [ { "info": { "name": "List documents", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.flatfile.com/v1/spaces/:spaceId/documents", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "spaceId", "value": "", "type": "path", "description": "ID of space to return" } ] }, "docs": "Returns all documents for a space" }, { "info": { "name": "Create a document", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.flatfile.com/v1/spaces/:spaceId/documents", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "spaceId", "value": "", "type": "path", "description": "ID of space to return" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Add a new document to the space" }, { "info": { "name": "Get a document", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.flatfile.com/v1/spaces/:spaceId/documents/:documentId", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "spaceId", "value": "", "type": "path", "description": "ID of space to return" }, { "name": "documentId", "value": "", "type": "path", "description": "ID of document to return" } ] }, "docs": "Returns a single document" }, { "info": { "name": "Update a document", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.x.flatfile.com/v1/spaces/:spaceId/documents/:documentId", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "spaceId", "value": "", "type": "path", "description": "ID of space to return" }, { "name": "documentId", "value": "", "type": "path", "description": "ID of document to return" } ], "body": { "type": "json", "data": "{}" } }, "docs": "updates a single document, for only the body and title" }, { "info": { "name": "Delete a document", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.x.flatfile.com/v1/spaces/:spaceId/documents/:documentId", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "spaceId", "value": "", "type": "path", "description": "ID of space to return" }, { "name": "documentId", "value": "", "type": "path", "description": "ID of document to delete" } ] }, "docs": "Deletes a single document" } ] } ], "bundled": true }