{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-file-response-schema.json",
  "title": "FileResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-ingest-service-openapi.yml#/components/schemas/FileResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier of the File",
      "format": "int32"
    },
    "name": {
      "type": "string",
      "description": "Label of the File"
    },
    "status": {
      "type": "string",
      "description": "Status of file upload",
      "enum": [
        "NEW",
        "UPLOADING",
        "UPLOADED",
        "UPLOAD_FAILED"
      ]
    },
    "delimiter": {
      "type": "string",
      "description": "String upon which the row will be split"
    },
    "year": {
      "type": "integer",
      "description": "Relevant year of importance for the file data",
      "format": "int32"
    },
    "period": {
      "type": "integer",
      "description": "Numeric period of no specific precision",
      "format": "int32"
    },
    "ingest_id": {
      "type": "string",
      "description": "Unique identifier of the Ingestion"
    },
    "created_at": {
      "type": "string",
      "description": "File created at time",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "completed_at": {
      "type": "string",
      "description": "Process completed at time",
      "format": "date-time"
    },
    "upload_started_at": {
      "type": "string",
      "description": "File upload started at time",
      "format": "date-time"
    },
    "upload_ended_at": {
      "type": "string",
      "description": "File upload ended at time",
      "format": "date-time"
    },
    "uploaded_bytes": {
      "type": "integer",
      "description": "Total file size uploaded",
      "format": "int64"
    },
    "mime_type": {
      "type": "string",
      "description": "file Mediatype"
    },
    "content_type": {
      "type": "string",
      "description": "file ContentType"
    }
  }
}