{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-patch-module-instance-params-schema.json",
  "title": "PatchModuleInstanceParams",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-moduleinstance-api-openapi.yml#/components/schemas/PatchModuleInstanceParams",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "module_type_id": {
      "type": "string"
    },
    "parent_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "external_references": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ModuleInstanceExternalReference"
      }
    },
    "enabled": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "settings": {
      "$ref": "#/$defs/PartialModuleInstanceSettings"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ModuleInstanceExternalReference": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "link": {
          "type": "string"
        },
        "external_id": {
          "type": "string"
        },
        "class": {
          "description": "Class to distinguish external references",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "label"
      ]
    },
    "PartialModuleInstanceSettings": {
      "type": "object",
      "additionalProperties": {
        "x-oneOf": [
          {
            "x-oneOf": [
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ]
          },
          {
            "type": "array",
            "items": {
              "x-oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "number",
                  "format": "double"
                },
                {
                  "type": "string"
                }
              ]
            }
          },
          {
            "$ref": "#/$defs/PartialModuleInstanceSettings"
          }
        ]
      }
    }
  }
}