Upload a file to storage. Returns file metadata including path for use in records.
cURL
curl --request POST \ --url https://api.example.com/api/v1/files/upload \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "file": { "filename": "<string>", "size": 123, "mime_type": "<string>", "path": "<string>" }, "success": true, "message": "File uploaded successfully" }
File to upload
Successful Response
Response schema for file upload.
Uploaded file metadata
Show child attributes
Upload success status
Success message