Create File

Deprecated

Create a new file in Extend for use in an evaluation set. This endpoint is deprecated, use /files/upload instead.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

x-extend-api-versionenumOptional

API version to use for the request. If you do not specify a version, you will either receive a 400 Bad Request or be set to a previous legacy version. See API Versioning for more details.

Allowed values:

Request

This endpoint expects an object.
namestringRequired

The name of the file

urlstringOptional

A pre signed URL for the file

rawTextstringOptional

The raw text content of the file

mediaTypestringOptional

The media type of the file (e.g. application/pdf)

Response

Successfully created file

successbooleanOptional
fileobjectOptional

Errors