한국어
Appearance
프로젝트 댓글 첨부파일 업로드를 만들고 파트 업로드용 Presigned URL을 반환합니다. 파트는 100 MB 단위로 생성되며, 첨부파일 최대 크기는 1 GB입니다.
댓글에 연결되지 않은 업로드는 생성 후 24시간이 지나면 자동 정리 대상이 됩니다.
관리형 업로드에는 SDK의 commentAttachments.uploadForProject 헬퍼 또는 CLI의 youvico comment-attachment upload 명령을 사용하세요. 두 방식 모두 전체 멀티파트 흐름을 처리합니다.
commentAttachments.uploadForProject
youvico comment-attachment upload
CLI 관리형 업로드
CLI 예시는 이 엔드포인트만 호출하지 않고 전체 관리형 업로드 흐름을 실행합니다.
const upload = await client.commentAttachments.startForProject("bdbff5de-96d7-468f-9db0-85fe28bd6b62", { name: "review-note.pdf", size: 1250000, });
youvico comment-attachment upload \ --project bdbff5de-96d7-468f-9db0-85fe28bd6b62 \ --path ./review-note.pdf
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 }'
{ "data": { "id": "CA1234567890ABCD", "parts": [ { "partNumber": 1, "url": "https://example.com/upload/1" } ] } }
id
string
name
1-255 characters
size
number
1-1000000000
201 Created를 반환합니다.
201 Created
data
object
data.id
Example: CA1234567890ABCD
CA1234567890ABCD
data.parts
array
data.parts[].partNumber
Example: 1
1
data.parts[].url
Example: https://example.com/upload/1
https://example.com/upload/1
프로젝트 댓글 첨부파일 업로드 시작 Tier 3
프로젝트 댓글 첨부파일 업로드를 만들고 파트 업로드용 Presigned URL을 반환합니다. 파트는 100 MB 단위로 생성되며, 첨부파일 최대 크기는 1 GB입니다.
댓글에 연결되지 않은 업로드는 생성 후 24시간이 지나면 자동 정리 대상이 됩니다.
관리형 업로드에는 SDK의
commentAttachments.uploadForProject헬퍼 또는 CLI의youvico comment-attachment upload명령을 사용하세요. 두 방식 모두 전체 멀티파트 흐름을 처리합니다.CLI 관리형 업로드
CLI 예시는 이 엔드포인트만 호출하지 않고 전체 관리형 업로드 흐름을 실행합니다.
예시
요청
경로
idstringrequired본문
namestringrequired1-255 characters
sizenumberrequired1-1000000000
응답
201 Created를 반환합니다.dataobjectdata.idstringExample:
CA1234567890ABCDdata.partsarraydata.parts[].partNumbernumberExample:
1data.parts[].urlstringExample:
https://example.com/upload/1