API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

Create presigned upload URL

POST/files/v1/upload-url

S3 presigned URL flow for upload/download with file metadata persistence.

Request body

NaamTypeBeschrijving
fileNamevereiststring
mimeTypevereiststring
sizeBytesvereistnumber
entityTypevereiststring
entityIdvereiststring

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

Zoeken