OpenAI Batch

Delete a file from the upstream OpenAI Files API.

delete/api/files/{file_id}/

Request

  • Base URL
    https://api.respan.ai
  • URL
    https://api.respan.ai/api/files/{file_id}/
  • Auth
    HTTP bearer

Path parameters

file_idstring required

OpenAI file ID.

Query parameters

provider_idstring required

Provider route with customer-owned credentials, for example openai or parasail.

Response

Deleted file.

idstring required
objectstring
deletedboolean required

Example response

{
  "id": "file-abc123",
  "object": "file",
  "deleted": true
}

Changes

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • info

      api operation id openAiBatch_deleteFile removed and replaced with deleteFile

    • info

      api tag OpenAI Batch added

    • info

      api tag openAiBatch removed

    • info

      removed subschema #1 subschema #2 from the / response property oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the / response property oneOf list for the response status

    • breaking

      the response's property type changed from string to object for status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      the response property became required for the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status