한국어
Appearance
댓글 또는 기존 댓글의 답글을 작성합니다.
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 1000 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
content, anchor, attachments 중 하나 이상을 제공해야 합니다. duration은 anchor가 있을 때만 제공할 수 있습니다.
각 첨부파일 ID는 서로 달라야 하며, 같은 사용자가 이 파일을 대상으로 시작해 완료했고 아직 다른 댓글에 연결되지 않은 업로드를 가리켜야 합니다.
WARNING
답글에 대한 답글은 작성할 수 없습니다. parent.id는 최상위 댓글을 가리켜야 합니다.
201 Created를 반환합니다.
201 Created
data
data.id
Example: 2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6
2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6
댓글 작성 Tier 4
댓글 또는 기존 댓글의 답글을 작성합니다.
예시
요청
경로
idstringrequired본문
contentstringMaximum 1000 characters
anchornumber0 or greater
durationnumber0 or greater
parentobjectparent.idstringrequiredExample:
0efee6f8-5829-41c9-bb4d-90dd7e72cc58attachmentsarray1-10 items
attachments[].idstringrequiredExample:
CA1234567890ABCDINFO
content,anchor,attachments중 하나 이상을 제공해야 합니다.duration은anchor가 있을 때만 제공할 수 있습니다.INFO
각 첨부파일 ID는 서로 달라야 하며, 같은 사용자가 이 파일을 대상으로 시작해 완료했고 아직 다른 댓글에 연결되지 않은 업로드를 가리켜야 합니다.
WARNING
답글에 대한 답글은 작성할 수 없습니다.
parent.id는 최상위 댓글을 가리켜야 합니다.응답
201 Created를 반환합니다.dataobjectdata.idstringExample:
2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6