Skip to content

Complete Comment Attachment Upload Tier 4

POST/api/comment-attachments/:id/upload.completeCopied!

Completes a multipart upload for a comment attachment.

Only the user who started the upload can complete it.

Managed CLI upload

The SDK upload helpers and CLI youvico comment-attachment upload command both run the full multipart workflow, so the CLI example below does not call this endpoint alone.

Example

ts
await client.commentAttachments.completeUpload("CA1234567890ABCD", {
  parts: [{ partNumber: 1, eTag: "etag-1" }],
});
bash
youvico comment-attachment upload \
  --file FX1234567890ABCD \
  --path ./review-note.pdf
bash
curl -X POST 'https://api.youvico.com/api/comment-attachments/CA1234567890ABCD/upload.complete' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{ "parts": [{ "partNumber": 1, "eTag": "etag-1" }] }'

Request

Path

idstringrequired
Comment attachment ID

Body

partsarrayrequired

At least 1 item

Completed upload parts
parts[].partNumbernumberrequired

1 or greater

Part number

Example: 1

parts[].eTagstringrequired

1-255 characters

ETag returned by the storage upload

Example: etag-1

Response

Returns 204 No Content.