コメント作成(ファイル)
POST
https://api.youvico.com/api/files/:id/comments- レート制限
- Tier 4
- スコープ
- 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 のうち1つ以上に値が必要です。duration は anchor と一緒に送信する場合のみ使用できます。
レスポンス
201 Created を返します。
dataobject作成されたコメント
data.idstring作成されたコメントのID
例: 84202e58-bf8c-471d-af07-0ab0f5b0f82b