Create presigned upload URL
POST/files/v1/upload-url
S3 presigned URL flow for upload/download with file metadata persistence.
Request body
| Naam | Type | Beschrijving |
|---|
fileNamevereist | string | |
mimeTypevereist | string | |
sizeBytesvereist | number | |
entityTypevereist | string | |
entityIdvereist | string | |
Voorbeeld
curl -X POST https://api.codemeta-os.de/files/v1/upload-url \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"fileName": "string",
"mimeType": "string",
"sizeBytes": 0,
"entityType": "string",
"entityId": "string"
}'
const result = await cm.files.post({
"fileName": "string",
"mimeType": "string",
"sizeBytes": 0,
"entityType": "string",
"entityId": "string"
});
Antwoordcodes
| HTTP |
Betekenis |
201 |
Default Response |