Upload a file that can be used with the Batch API. The Batch API only supports .jsonl files with a specific required format.
The <a href="https://w3c.github.io/FileAPI/#file-section" target="_blank">file object</a> (not file name) to be uploaded.
The intended purpose of the uploaded file. Currently, this value must be set to batch.
Success
The file identifier.
The object type, which is always file.
The size of the file, in bytes.
RFC 3339 datetime string for when the file was created.
RFC 3339 datetime string for when the file expires. Currently, this is 30 days after the file is created.
The name of the file.
The intended purpose of the file. Supported values are batch, batch-output, and batch-error.