Files uploads

Открыть загрузку файла

Ответ содержит план частей: файл любого размера грузится кусками, а обрыв стоит одной части. Относительный путь превращается в дерево папок до первого байта.

post/api/v1/files/uploads

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/files/uploads
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)

Headers

X-Tenantstring required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

folder_idstring uuid required
file_idstring uuid
namestring required
relative_pathstring

Путь файла внутри загружаемой папки; недостающие папки создаются по нему

mime_typestring
size_bytesinteger required
commentstring

Response

Сессия загрузки

idstring uuid required
folder_idstring uuid required
root_idstring uuid required
file_idstring uuid
namestring required
mime_typestring required
size_bytesinteger required
part_bytesinteger required
part_countinteger required
status'pending' | 'uploading' | 'completed' | 'failed' | 'aborted' required
error_codestring
expires_atstring date-time required
created_atstring date-time required
direct_urlsobject

Подписанные адреса частей для прямой записи в объектное хранилище

Changes

No recorded changes to this operation across all 1 revision of this API.