AladiaDocs
Api referenceStorageFiles

Create a file

Create a file

POST
/v2/storage/files

Create a file

AuthorizationBearer <token>

In: header

Query Parameters

retrieveSignedUrl?boolean
retrievePublicUrl?boolean

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v2/storage/files" \  -H "Content-Type: application/json" \  -d '{    "fileId": "string",    "metadata": {      "mimetype": "string",      "size": 0,      "name": "string"    },    "contextCode": "lecture-attachment"  }'
{}