Files shares

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

Changed on

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

post/api/v1/files/shares

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Headers

X-Tenant, string required

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

Request body

FilesShareInput 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

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

FilesShare 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 field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    3 more changes in this revision