{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chemaxon/json-schema/chemaxon-insert-molecules-response-schema.json",
  "title": "InsertMoleculesResponse",
  "description": "Response of batch molecule insertion",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chemaxon-database-search-openapi.yml#/components/schemas/InsertMoleculesResponse",
  "properties": {
    "duplicatedIds": {
      "type": "array",
      "description": "A list containing the IDs of the input structures which are duplicates of an already inserted structure.",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "duplicatedIndexes": {
      "type": "array",
      "description": "A list containing the zero-based index of the input structures which are duplicates of an already inserted structure. (If you are using autogenerated IDs, this is the only information you can use to detect which of your inputs are duplicates.)",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "failedIds": {
      "type": "array",
      "description": "A list containing the IDs of the input structures which could not be imported.",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "failedIndexes": {
      "type": "array",
      "description": "A list containing the zero-based index of the input structures which could not be imported. (If you are using autogenerated IDs, this is the only information you can use to detect which of your inputs had errors.)",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "insertSuccess": {
      "type": "array",
      "deprecated": true,
      "description": "A list containing a boolean value containing the information whether the corresponding molecule was inserted successfully.\nDeprecated, do not use.\n[Deprecated] - will be removed, use \"failedIds\" instead",
      "items": {
        "type": "boolean"
      }
    },
    "processed": {
      "type": "integer",
      "format": "int64",
      "description": "Number of molecules which were processed before stopping due to timeout or reaching the end of the input."
    },
    "stoppedByTimeout": {
      "type": "boolean",
      "description": "Returns whether the insertion stopped due to timeout. If true, then there are unprocessed molecules, so the same endpoint have to be called again with offset to fully process the source"
    },
    "successfulIds": {
      "type": "array",
      "description": "A list containing the IDs of the input structures which were imported.",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "successfulIndexes": {
      "type": "array",
      "description": "A list containing the zero-based index of the input structures which were imported. (If you are using autogenerated IDs, this is the only information you can use to detect which are the IDs of your inputs.)",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    }
  }
}