Files content

Временный адрес содержимого

Changed on

Адрес для проигрывателя и просмотрщика: они ходят за байтами сами и заголовка авторизации не ставят. direct=false означает, что хранилище подписывать не умеет и адрес ведёт на этот же API — заголовок по-прежнему нужен.

get/api/v1/files/items/{id}/content-url

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

Query parameters

kind, 'content' | 'preview' | 'thumbnail'

Что именно адресуется

Headers

X-Tenant, string required

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

Response

Временный адрес

object required
url, string required
direct, boolean required

true — адрес ведёт прямо в хранилище; false — на этот API, с заголовком авторизации

expires_at, string date-time
name, string required
mime_type, string required
size_bytes, integer
version_id, string uuid
version_no, integer

Номер версии, содержимое которой адресуется

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