Tasks

Создать прямую upload-сессию файла

Возвращает короткоживущий подписанный URL; постоянный ключ хранилища наружу не выдаётся.

post/api/v1/tasks/attachments/upload-sessions

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/tasks/attachments/upload-sessions
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)
    • HTTP bearer

Request body

owner_type'task' | 'section' | 'project' | 'comment' | 'meeting' | 'document' required
owner_idstring uuid required
folder_idstring uuid

Папка файлов проекта, куда сразу ляжет файл; только при owner_type=project

filenamestring required
mime_typestring
size_bytesinteger required
sha256string

Response

Upload-сессия

idstring uuid required
attachment_idstring uuid required
replace_attachment_idstring uuid
owner_type'task' | 'section' | 'project' | 'comment' | 'meeting' | 'document' required
owner_idstring uuid required
folder_idstring uuid

Папка файлов проекта, куда ляжет файл

uploaded_byinteger required
namestring required
mime_typestring required
size_bytesinteger required
sha256string
statusstring required
expires_atstring date-time required
completed_atstring date-time
created_atstring date-time required
upload_urlstring uri
methodstring
headersobject
fieldsobject
file_fieldstring
max_bytesinteger

Changes

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