Tasks

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

Создаёт прямую сессию загрузки файла для замены вложения.

post/api/v1/tasks/attachments/{id}/replace-sessions

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/tasks/attachments/{id}/replace-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

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.