Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 858 Bytes

api_doc.md

File metadata and controls

40 lines (28 loc) · 858 Bytes

FileManagement APIs

List File

GET /unstract/<org_id>/file?connector_id=<id>&path=<path>

Sample URL:

<base_url>/unstract/org_KIYj2cJ9Yisdewi4/file?connector_id=11&path=/

Download

GET /unstract/<org_id>/file/download?connector_id=<id>&path=<path>

Sample URL:

<base_url>/unstract/org_KIYj2cJ9Yisdewi4/file/download?connector_id=12&path=root/MaskTwo-design

Upload

POST /unstract/<org_id>/file/upload

Sample URL:

<base_url>/unstract/org_KIYj2cJ9Yisdewi4/file/upload

Body

{
    "file": <File> "<multiple files>",
    "connector_id": "<Connector Id>",
    "path": "<File location>",
}