Skip to content

Create attachment

POST
/viewer/{mediaSourceId}/comment/attachment

Upload attachment (requires can_post_comment)

Authorizations

Parameters

Path Parameters

mediaSourceId*
Type
string
Required
Format
"uuid"

Request Body

multipart/form-data
object
Format"uuid"

Responses

Created attachment

application/json
JSON
{
"success": true,
"data": {
"attachment": {
"id": "string",
"attachmentType": "string",
"presignedUrl": "string",
"commentId": "string",
"originalName": "string",
"size": 0,
"contentType": "string",
"createdAt": "string",
"annotation": {
"strokes": [
{
"type": "string",
"points": [
{
"x": 0,
"y": 0
}
],
"color": "string"
}
]
}
},
"uploadUrl": "string"
}
}

Playground

Server
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI