English
Appearance
Creates a comment or a reply to an existing comment.
const comment = await client.comments.createForFile("FX1234567890ABCD", { content: "Looks great, approved.", anchor: 12000, duration: 3000, parent: { id: "0efee6f8-5829-41c9-bb4d-90dd7e72cc58" }, });
youvico comment create \ --file FX1234567890ABCD \ --content "Looks great, approved." \ --anchor 12000 \ --duration 3000 \ --parent 0efee6f8-5829-41c9-bb4d-90dd7e72cc58
curl -X POST 'https://api.youvico.com/api/files/FX1234567890ABCD/comments' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "content": "Looks great, approved.", "anchor": 12000, "duration": 3000, "parent": { "id": "0efee6f8-5829-41c9-bb4d-90dd7e72cc58" } }'
{ "data": { "id": "2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6" } }
id
string
content
Maximum 2000 characters
anchor
number
0 or greater
duration
parent
object
parent.id
Example: 0efee6f8-5829-41c9-bb4d-90dd7e72cc58
0efee6f8-5829-41c9-bb4d-90dd7e72cc58
attachments
array
1-10 items
attachments[].id
Example: CA1234567890ABCD
CA1234567890ABCD
INFO
Provide at least one of content, anchor, or attachments. duration can be provided only when anchor is present.
Each attachment ID must be unique and refer to a completed, unattached upload started by the same user for this file.
WARNING
Replies to replies are not allowed. parent.id must point to a top-level comment.
Returns 201 Created.
201 Created
data
data.id
Example: 2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6
2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6
Create Comment Tier 4
Creates a comment or a reply to an existing comment.
Example
Request
Path
idstringrequiredBody
contentstringMaximum 2000 characters
anchornumber0 or greater
durationnumber0 or greater
parentobjectparent.idstringrequiredExample:
0efee6f8-5829-41c9-bb4d-90dd7e72cc58attachmentsarray1-10 items
attachments[].idstringrequiredExample:
CA1234567890ABCDINFO
Provide at least one of
content,anchor, orattachments.durationcan be provided only whenanchoris present.INFO
Each attachment ID must be unique and refer to a completed, unattached upload started by the same user for this file.
WARNING
Replies to replies are not allowed.
parent.idmust point to a top-level comment.Response
Returns
201 Created.dataobjectdata.idstringExample:
2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6