{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cms-gov/json-schema/cms-gov-bulk-response-body-schema.json",
  "title": "BulkResponseBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cms-gov-job-api-openapi.yml#/components/schemas/BulkResponseBody",
  "type": "object",
  "properties": {
    "JobID": {
      "type": "integer",
      "format": "uint64"
    },
    "error": {
      "description": "Information about error files, including URLs for downloading",
      "type": "array",
      "items": {
        "$ref": "#/$defs/fileItem"
      },
      "x-go-name": "Errors"
    },
    "output": {
      "description": "Information about generated data files, including URLs for downloading",
      "type": "array",
      "items": {
        "$ref": "#/$defs/fileItem"
      },
      "x-go-name": "Files"
    },
    "request": {
      "description": "URL of the bulk data export request",
      "type": "string",
      "x-go-name": "RequestURL"
    },
    "requiresAccessToken": {
      "description": "Indicates whether an access token is required to download generated data files",
      "type": "boolean",
      "x-go-name": "RequiresAccessToken"
    },
    "transactionTime": {
      "description": "Server time when the query was run",
      "type": "string",
      "format": "date-time",
      "x-go-name": "TransactionTime"
    }
  },
  "x-go-package": "github.com/CMSgov/bcda-app/bcda/api",
  "$defs": {
    "fileItem": {
      "type": "object",
      "properties": {
        "type": {
          "description": "FHIR resource type of file contents",
          "type": "string",
          "x-go-name": "Type"
        },
        "url": {
          "description": "URL of the file",
          "type": "string",
          "x-go-name": "URL"
        }
      },
      "x-go-name": "FileItem",
      "x-go-package": "github.com/CMSgov/bcda-app/bcda/api"
    }
  }
}