GET
/v2/drive
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON[ { "uuid": "614727ee-da64-49b5-ae11-d8e3c32981e3", "type": 0, "size": 11730544, "params": { "name": "Файлик", "shared": false, "corpShared": false, "createdDate": 1759254000000, "updatedDate": 1759254600000, "folder": "7b265928-6515-4a4c-948c-4e68b6b19636", "extension": "exe" } }, { "uuid": "7b265928-6515-4a4c-948c-4e68b6b19636", "type": 1, "size": 0, "params": { "name": "Папка", "createdDate": 1759253400000, "updatedDate": 1759253400000, "folder": 0 } } ]
POST
/v2/drive/file
Headers
Name | Value |
Content-Type | multipart/form-data |
Authorization | Bearer <token> |
Body
Name | Value |
file | File |
Response
JSON{ status: "OK", msg: "File uploaded", id: uuid }
POST
/v2/drive/folder
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
name | Название папки |
parent_id? | ID родительской папки |
Response
JSON{ status: "OK", msg: "Folder created" }
POST
/v2/drive/move
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
fileUuid | ID файла |
folderUuid | ID папки, куда перемещен файл |
Response
JSON{ status: "OK" }
POST
/v2/drive/rename/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
name | Название |
Response
JSON{ status: "OK" }
POST
/v2/drive/:id/share
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON{ status: "OK", msg: "File updated" }
POST
/v2/drive/corpShare/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON{ status: "OK", msg: "File updated" }
GET
/v2/drive/file/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
STREAMING FILEFILE
DELETE
/v2/drive/object/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON{ status: "OK", msg: "File deleted" }
GET
/v2/drive/shared/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON[ { "uuid": "a89700ca-d345-43b8-880e-d6e6e9cf6a5e", "type": 0, "size": 67168307, "params": { "name": "alpha-build-mobile", "createdDate": 1759258800000, "updatedDate": 1759259400000, "folder": "7b265928-6515-4a4c-948c-4e68b6b19636", "extension": "apk" } } ]
GET
/v2/drive/shared/file/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
STREAMING FILEFILE
GET
/v2/drive/corpShared/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON[ { "uuid": "a89700ca-d345-43b8-880e-d6e6e9cf6a5e", "type": 0, "size": 67168307, "params": { "name": "alpha-build-mobile", "createdDate": 1759258800000, "updatedDate": 1759259400000, "folder": "7b265928-6515-4a4c-948c-4e68b6b19636", "extension": "apk" } } ]
GET
/v2/drive/corpShared/file/:id
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
STREAMING FILEFILE