Files

Получить карточку файла

Changed on

Возвращает карточку указанного файла.

get/api/v1/files/items/{id}

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

Path parameters

id, string uuid required

Headers

X-Tenant, string required

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

Response

Файл

FilesFile required
id, string uuid required
folder_id, string uuid required
root_id, string uuid required
name, string required
external_url, string uri

HTTP(S)-адрес внешнего ярлыка; отсутствует у обычных файлов

extension, string required
mime_type, string required
size_bytes, integer required
version_no, integer required
version_id, string uuid
owner_id, integer required
created_by, integer required
updated_by, integer
trashed_at, string date-time
created_at, string date-time required
updated_at, string date-time required
scan_status, 'pending' | 'scanning' | 'clean' | 'infected' | 'skipped' | 'error' required

skipped — содержимое крупнее порога проверки: оно выдаётся, но честно помечено непроверенным

scan_verdict, string
preview_status, 'pending' | 'processing' | 'ready' | 'unsupported' | 'error' required
has_thumbnail, boolean required
is_favorite, boolean required
folder_name, string
path, FilesBreadcrumb[]

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