English
Appearance
Creates a comment or a reply to an existing comment.
const comment = await client.comments.create("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
1–1000 characters
anchor
number
duration
parent
object?
parent.id
Example: 0efee6f8-5829-41c9-bb4d-90dd7e72cc58
0efee6f8-5829-41c9-bb4d-90dd7e72cc58
parentId
WARNING
Replies to replies are not allowed. parent.id must point to a top-level comment.
Returns 201 Created.
201 Created
data
object
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
contentstringrequired1–1000 characters
anchornumberdurationnumberparentobject?parent.idstringExample:
0efee6f8-5829-41c9-bb4d-90dd7e72cc58parentIdstringdeprecatedWARNING
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