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"
  }
}