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.

Endpoint not callable from CLI

The CLI does not expose direct comment attachment upload commands. Use the SDK helper or call the HTTP endpoint directly.

Example

ts
await client.commentAttachments.completeUpload("CA1234567890ABCD", {
  parts: [{ partNumber: 1, eTag: "etag-1" }],
});
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.