Tasks

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

Changed on

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

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

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

id, string uuid required

Headers

X-Tenant, string required

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

Request body

AttachmentReplacementSessionCreate required
filename, string required
mime_type, string
size_bytes, integer required
sha256, string

Response

Upload-сессия замены

AttachmentUploadSession required
id, string uuid required
attachment_id, string uuid required
replace_attachment_id, string uuid
owner_type, 'task' | 'section' | 'project' | 'comment' | 'meeting' | 'document' required
owner_id, string uuid required
folder_id, string uuid

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

uploaded_by, integer required
name, string required
mime_type, string required
size_bytes, integer required
sha256, string
status, string required
expires_at, string date-time required
completed_at, string date-time
created_at, string date-time required
upload_url, string uri
method, string
headers, object
fields, object
file_field, string
max_bytes, 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

    9 more changes in this revision