Create presigned upload URL
POST/v1/files/v1/upload-url
CodeMeta OS API endpoint.
Cuerpo de la solicitud
| Nombre | Tipo | Descripción |
|---|
fileNameobligatorio | string | |
mimeTypeobligatorio | string | |
sizeBytesobligatorio | number | |
entityTypeobligatorio | string | |
entityIdobligatorio | string | |
Ejemplo
curl -X POST https://api.codemeta-os.de/v1/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"
});
Códigos de respuesta
| HTTP |
Significado |
201 |
Default Response |