Files
Создать папку
Changed onИмя, занятое соседом, не отвергается, а дополняется номером — как это делает проводник. Закрытым бывает только диск — is_restricted=true у папки внутри диска отклоняется (422, code=files.subfolder_restricted), папка не создаётся.
post/api/v1/files/folders
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
Headers
X-Tenant, string required
Slug выбранного кабинета; кабинет не является юрлицом
Request body
Files Folder Input required
parent_id, string uuid
name, string required
icon, string
color, string
description, string
kind, 'shared'
is_restricted, boolean
business_id, string uuid nullable
Response
Созданная папка
Files Folder required
id, string uuid required
parent_id, string uuid
root_id, string uuid required
depth, integer required
name, string required
kind, 'shared' | 'personal' required
Личное хранилище принадлежит своему владельцу целиком
icon, string required
color, string required
description, string required
is_restricted, boolean required
Закрытое хранилище видно только участникам его списка
break_inheritance, boolean required
Права хранилища на эту папку не действуют
business_id, string uuid nullable required
owner_id, integer required
created_by, integer required
trashed_at, string date-time
created_at, string date-time required
updated_at, string date-time required
can_read, boolean required
can_write, boolean required
can_share, boolean required
Право выпускать внешние ссылки; из открытости хранилища не следует
can_manage, boolean required
is_favorite, boolean required
folder_count, integer required
file_count, integer required
size_bytes, integer required
Changes
- info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status
5 more changes in this revision
- info