Skip to content

프로젝트 댓글 첨부파일 업로드 시작 Tier 3

POST/api/projects/:id/comment-attachments/upload.multipartCopied!

프로젝트 댓글 첨부파일 업로드를 만들고 presigned upload URL을 반환합니다. 파트는 100 MB 단위로 생성되며, 첨부파일 최대 크기는 1 GB입니다.

댓글에 연결되지 않은 업로드는 생성 후 24시간이 지나면 자동 정리 대상이 됩니다.

일반적인 댓글 첨부파일 업로드에는 이 엔드포인트를 직접 호출하는 대신 SDK의 commentAttachments.uploadForProject 헬퍼를 사용하세요. 댓글 첨부파일 업로드를 참고하세요.

CLI에서 직접 호출할 수 없는 엔드포인트

CLI는 댓글 첨부파일 업로드 명령을 직접 제공하지 않습니다. SDK 헬퍼를 사용하거나 HTTP 엔드포인트를 직접 호출하세요.

예시

ts
const upload = await client.commentAttachments.startForProject("bdbff5de-96d7-468f-9db0-85fe28bd6b62", {
  name: "review-note.pdf",
  size: 1250000,
});
bash
curl -X POST 'https://api.youvico.com/api/projects/bdbff5de-96d7-468f-9db0-85fe28bd6b62/comment-attachments/upload.multipart' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{ "name": "review-note.pdf", "size": 1250000 }'
json
{
  "data": {
    "id": "CA1234567890ABCD",
    "parts": [
      {
        "partNumber": 1,
        "url": "https://example.com/upload/1"
      }
    ]
  }
}

요청

경로

idstringrequired
프로젝트 ID

본문

namestringrequired

1-255 characters

첨부파일 이름
sizenumberrequired

1-1000000000

첨부파일 크기(바이트)

응답

201 Created를 반환합니다.

dataobject
업로드 세션
data.idstring
생성된 댓글 첨부파일 ID

Example: CA1234567890ABCD

data.partsarray
업로드 파트 목록
data.parts[].partNumbernumber
파트 번호

Example: 1

data.parts[].urlstring
파트 업로드용 presigned URL

Example: https://example.com/upload/1