Register a file upload
Changed onRegisters an image or video in the org's file library and returns a presigned S3 URL to upload the bytes to. PUT the raw file to upload_url with the declared Content-Type and Content-Length headers before the URL expires, then call the complete endpoint to make it ready. The registered file has source=upload. Uploads are capped per file and per org by total size.
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-Axilio-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"$schema": "/api/v1/FileCreateRequest.json"
}Response
Created
Example response
{
"$schema": "/api/v1/FileUploadResponse.json",
"file": {
"$schema": "/api/v1/FileSummary.json"
}
}Changes
- warning
added the new
messageenum value to the/response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning
- breaking
the
request property's max was decreased to104857600.00
- breaking