FileImport
Defines a document to import from an external content url to be usable with Azure OpenAI.
Properties
| Name | Type | Description |
|---|---|---|
| purpose | object | |
| filename | string | The name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded. If the `purpose` is set to "fine-tune", each line is a JSON record with "prompt" and "completion" fields |
| content_url | string | The url to download the document from (can be SAS url of a blob or any other external url accessible with a GET request). |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/microsoft-azure-openai/json-schema/microsoft-azure-openai-file-import-schema.json",
"title": "FileImport",
"description": "Defines a document to import from an external content url to be usable with Azure OpenAI.",
"x-generated": "2026-11-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/microsoft-azure-openai-files-api-openapi.yml#/components/schemas/FileImport",
"required": [
"content_url",
"filename",
"purpose"
],
"type": "object",
"properties": {
"purpose": {
"$ref": "#/$defs/Purpose"
},
"filename": {
"description": "The name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded.\nIf the `purpose` is set to \"fine-tune\", each line is a JSON record with \"prompt\" and \"completion\" fields representing your training examples.",
"minLength": 1,
"type": "string"
},
"content_url": {
"format": "url",
"description": "The url to download the document from (can be SAS url of a blob or any other external url accessible with a GET request).",
"type": "string"
}
},
"$defs": {
"Purpose": {
"title": "Purpose",
"description": "The intended purpose of the uploaded documents. Use \"fine-tune\" for fine-tuning. This allows us to validate the format of the uploaded file.",
"enum": [
"fine-tune",
"fine-tune-results",
"assistants",
"assistants_output",
"batch",
"batch_output"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "Purpose",
"modelAsString": true,
"values": [
{
"value": "fine-tune",
"description": "This file contains training data for a fine tune job."
},
{
"value": "fine-tune-results",
"description": "This file contains the results of a fine tune job."
},
{
"value": "assistants",
"description": "This file contains data to be used in assistants."
},
{
"value": "assistants_output",
"description": "This file contains the results of an assistant."
},
{
"value": "batch",
"description": "This file contains the input data for a batch."
},
{
"value": "batch_output",
"description": "This file contains the results of a batch."
}
]
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/microsoft-azure-openai-file-import"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.