Comments

Complete attachment multipart upload

Changed on

Completes a multipart upload and returns a draft comment attachment. Pass the returned attachment ID in the comment's attachment IDs when creating or editing a comment.

post/rooms/{roomId}/attachments/{attachmentId}/multipart/{uploadId}/complete

Request

  • Base URL: https://api.liveblocks.io/v2
  • URL: https://api.liveblocks.io/v2/rooms/{roomId}/attachments/{attachmentId}/multipart/{uploadId}/complete
  • Auth: none declared

Path parameters

roomIdstring required

ID of the room

Example:my-room-id
attachmentIdstring required

ID of the attachment

Example:at_abc123456789012345678
uploadIdstring required

ID returned when the multipart upload was created

Query parameters

userIdstring required

ID of the user uploading the attachment

Example:alice

Request body

Response

Success. Returns the uploaded draft attachment.

type'attachment' required
idstring required
mimeTypestring required
namestring required
sizeinteger required

Example response

{
  "type": "attachment",
  "id": "at_abc123",
  "mimeType": "image/png",
  "name": "screenshot.png",
  "size": 12345
}

Changes