Files shares

Выпустить внешнюю ссылку

Требует права files:share и уровня «Ссылки» на папке: выпуск содержимого наружу не следует из умения складывать в неё файлы. Токен возвращается один раз.

post/api/v1/files/shares

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/files/shares
  • 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
file_idstring uuid
mode'view' | 'download' | 'upload' required
titlestring
passwordstring
expires_atstring date-time nullable

Момент, после которого ссылка перестаёт открываться

max_downloadsinteger nullable

Response

Выпущенная ссылка

idstring uuid required
folder_idstring uuid
file_idstring uuid
root_idstring uuid required
mode'view' | 'download' | 'upload' required

upload — приёмник файлов: получатель кладёт своё и не видит чужого

titlestring required
has_passwordboolean required
expires_atstring date-time
max_downloadsinteger
download_countinteger required
last_access_atstring date-time
revoked_atstring date-time
created_byinteger required
created_atstring date-time required
target_namestring
tokenstring

Показывается один раз при создании; в базе лежит только его хэш

urlstring

Changes

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