Create a filespec
Create a filespec to be referenced by another record. A subsequent POST to /file is required to actually upload a file.
Authorization
BearerAuth AuthorizationBearer <token>
API authentication via Authorization: Bearer <your-api-key>. Obtain
your API key from Config → API in the Aplas web app.
In: header
Request Body
application/json
An object including the fileName and fileType (MIME type)
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://api.au.aplas.com/api/v2/filespec" \ -H "Content-Type: application/json" \ -d '{ "fileName": "file.png", "fileType": "image/png" }'{
"fileId": "id"
}{
"code": 500,
"message": "Internal server error"
}