Skip to content

コメント作成 Tier 4

POST/api/files/:id/commentsCopied!

コメント、または既存コメントへの返信を作成します。

リクエスト

パス

idstringrequired
ファイルID

ボディ

contentstringrequired

1–1000 characters

コメント本文
parentIdstring
親コメントID

WARNING

返信への返信は作成できません。parentId はトップレベルコメントを指す必要があります。

レスポンス

201 Created を返します。

dataobject
作成されたコメント
data.idstring
作成されたコメントのID

Example: 2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6

bash
curl -X POST 'https://api.youvico.com/api/files/8fe89e5a-1d8f-4302-8437-fb0390ecf8eb/comments' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{ "content": "Please tighten the logo safe area." }'
json
{
  "data": {
    "id": "2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6"
  }
}