{
"directoryId": "019c6808-7d7f-76cb-9e1d-ee89e2ed633d",
"files": [
{
"fileName": "contrato.pdf",
"mimeType": "application/pdf",
"size": 1048576
},
{
"fileName": "contrato.zip",
"mimeType": "application/x-zip-compressed",
"size": 1048576
}
]
}{
"message": "URLs de upload geradas com sucesso",
"body": [
{
"fileId": "01a01a89-f9f0-71ff-8cc8-53b97aa91566",
"fileName": "contrato.pdf",
"upload": {
"type": "single",
"url": "https://<account>.r2.cloudflarestorage.com/bucket/org/pending/01a01a89.pdf?X-Amz-...",
"headers": {
"Content-Type": "application/pdf"
}
},
"uploadToken": "eyJhbGciOi...",
"expiresAt": "2026-10-16T15:20:00.000Z"
},
{
"fileId": "01a01a89-f9f0-71ff-8cc8-53b97aa91567",
"fileName": "video.mp4",
"upload": {
"type": "multipart",
"partSize": 16777216,
"parts": [
{
"partNumber": 1,
"url": "https://..."
},
{
"partNumber": 2,
"url": "https://..."
}
]
},
"uploadToken": "eyJhbGciOi...",
"expiresAt": "2026-10-16T17:05:00.000Z"
}
]
}