Files shares
Выпустить внешнюю ссылку
Changed onТребует права files:share и уровня «Ссылки» на папке: выпуск содержимого наружу не следует из умения складывать в неё файлы. Токен возвращается один раз.
post/api/v1/files/shares
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 Share Input required
folder_id, string uuid
file_id, string uuid
mode, 'view' | 'download' | 'upload' required
title, string
password, string
expires_at, string date-time nullable
Момент, после которого ссылка перестаёт открываться
max_downloads, integer nullable
Response
Выпущенная ссылка
Files Share required
id, string uuid required
folder_id, string uuid
file_id, string uuid
root_id, string uuid required
mode, 'view' | 'download' | 'upload' required
upload — приёмник файлов: получатель кладёт своё и не видит чужого
title, string required
has_password, boolean required
expires_at, string date-time
max_downloads, integer
download_count, integer required
last_access_at, string date-time
revoked_at, string date-time
created_by, integer required
created_at, string date-time required
target_name, string
token, string
Показывается один раз при создании; в базе лежит только его хэш
url, string
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
3 more changes in this revision
- info