/api/v1/attachments:uploadUpload an attachment in chunks
Uploads a file in chunks to create an attachment. Start an upload with spec, then use the returned uploadId to continue; each write must use the current committed byte offset. Uploads are bound to the authenticated user, expire after 30 minutes of inactivity, and do not survive a server restart.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Chunked attachment upload request. Start with spec, then continue with uploadId; writeOffset is required.
writeOffset is required and must equal the committed size, except when retrying the most recently accepted chunk with identical bytes and offset. Start a new upload with spec, whose attachment field is required, and use the returned uploadId for subsequent calls. Each data chunk must not exceed the returned maxChunkSize; when finishWrite is true, the committed size must equal totalSize.
