Upload a File
Files
Upload a File
Use this endpoint to upload a file to the DeepRails API
POST
Upload a File
Files used for the file search feature in Defend must be uploaded to DeepRails here before being added to workflows. The request body must include the
When you upload a file, you’ll receive a file ID. Use this ID to add the file to a workflow for evaluation. Additionally, you’ll receive a file path corresponding to the s3 bucket where the file is stored.
file to upload as binary content formatted as a form-data.When you upload a file, you’ll receive a file ID. Use this ID to add the file to a workflow for evaluation. Additionally, you’ll receive a file path corresponding to the s3 bucket where the file is stored.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
multipart/form-data
The contents of the files to upload.
