댓글 작성 (파일)
POST
https://api.youvico.com/api/files/:id/comments- 요청 제한
- Tier 4
- API 권한
- comments:write
파일에 댓글이나 답글을 작성합니다.
예시
curl -X POST 'https://api.youvico.com/api/files/FX1234567890ABCD/comments' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "content": "Updated and re-exported.", "anchor": 12000, "duration": 3000, "parent": { "id": "2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6" } }'
{
"data": {
"id": "84202e58-bf8c-471d-af07-0ab0f5b0f82b"
}
}
요청
curl -X POST 'https://api.youvico.com/api/files/FX1234567890ABCD/comments' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"content": "Updated and re-exported.",
"anchor": 12000,
"duration": 3000,
"parent": {
"id": "2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6"
}
}'
응답201 Created
{
"data": {
"id": "84202e58-bf8c-471d-af07-0ab0f5b0f82b"
}
}
요청
경로
idstringrequired파일 ID
본문
contentstringMaximum 5000 characters
댓글 내용
예시: Updated and re-exported.
anchornumberInteger, 0-2147483647
동영상은 밀리초 단위 타임스탬프, 문서는 1부터 시작하는 페이지 번호
예시: 12000
durationnumberInteger, 0-2147483647
anchor와 같은 단위의 댓글 구간 길이
예시: 3000
parentobject상위 댓글. 최상위 댓글을 작성하려면 생략
parent.idstringrequiredUUID
최상위 댓글 ID
예시: 2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6
attachmentsarray1-10 items, unique IDs
댓글 첨부 파일
attachments[].idstringrequired업로드가 완료된 댓글 첨부 파일 ID
참고
content, anchor, attachments 중 하나 이상은 값이 있어야 합니다. duration은 anchor와 함께 보낼 때만 사용할 수 있습니다.
응답
201 Created를 반환합니다.
dataobject생성된 댓글
data.idstring생성된 댓글 ID
예시: 84202e58-bf8c-471d-af07-0ab0f5b0f82b