Comments
Complete attachment multipart upload
Changed onCompletes 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.
Example response
{
"type": "attachment",
"id": "at_abc123",
"mimeType": "image/png",
"name": "screenshot.png",
"size": 12345
}Changes
- info
endpoint added
- info