[DEPRECATED] Create File
Create a new file in Extend for use in an evaluation set.
Deprecation Notice: This endpoint is deprecated and will be removed in a future release. Use the /upload
endpoint instead.
Creating a new File is a prerequisite for using that file with the evaluation sets API.
This endpoint will pre-process the contents of the file, and store it in the Extend platform for use in evaluation sets. For files that require pre-processing (e.g. pdfs, images, etc.) this endpoint can take up to 30 seconds to complete.
Supported file types can be found here.
Body
The name of the file.
A pre signed URL for the file.
The raw text content of the file.
The media type of the file. (e.g. application/pdf
). Will be inferred if not provided.
Response
A true or false value for whether the file was processed successfully or not.
A File object representing the newly created file. See the File object for more details.