post https://api.platform.a15t.com/v1/storage-files/upload
The workspace owner, organization owner and enterprise owner can upload files to the workspace storage
The request should include a Content-Type
header for the file_object
field
Request Example:
POST {{base-url}}/v1/storage-files/upload
Authorization: Bearer {{access-token}}
Content-Type: multipart/form-data; charset=utf-8; boundary=boundary
--boundary
Content-Disposition: form-data; name="purpose";
RAG
--boundary
Content-Disposition: form-data; name="description";
this is sample file
--boundary
Content-Disposition: form-data; name="file_object"; filename="Optimizing_Autonomous_Driving_for_Safety.pdf"
Content-Type: application/pdf; charset=utf-8
< ./samples/Optimizing_Autonomous_Driving_for_Safety.pdf
--boundary--