댓글 작성 (프로젝트)
POST
https://api.youvico.com/api/projects/:id/comments- 요청 제한
- Tier 4
- API 권한
- comments:write
프로젝트에 댓글이나 답글을 작성합니다.
예시
curl -X POST 'https://api.youvico.com/api/projects/bdbff5de-96d7-468f-9db0-85fe28bd6b62/comments' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "content": "Project brief is ready for review.", "attachments": [{ "id": "CA1234567890ABCD" }] }'
{
"data": {
"id": "e3a9c4f1-5b2d-4c8e-9f7a-1d6b8e2c4a90"
}
}
요청
curl -X POST 'https://api.youvico.com/api/projects/bdbff5de-96d7-468f-9db0-85fe28bd6b62/comments' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"content": "Project brief is ready for review.",
"attachments": [
{
"id": "CA1234567890ABCD"
}
]
}'
응답201 Created
{
"data": {
"id": "e3a9c4f1-5b2d-4c8e-9f7a-1d6b8e2c4a90"
}
}
요청
경로
idstringrequired프로젝트 ID
본문
contentstringMaximum 5000 characters
댓글 내용
예시: Project brief is ready for review.
parentobject상위 댓글. 최상위 댓글을 작성하려면 생략
parent.idstringrequiredUUID
최상위 댓글 ID
attachmentsarray1-10 items, unique IDs
댓글 첨부 파일
attachments[].idstringrequired업로드가 완료된 댓글 첨부 파일 ID
예시: CA1234567890ABCD
참고
content와 attachments 중 하나 이상은 값이 있어야 합니다.
응답
201 Created를 반환합니다.
dataobject생성된 댓글
data.idstring생성된 댓글 ID
예시: e3a9c4f1-5b2d-4c8e-9f7a-1d6b8e2c4a90