{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-mpm-create-changeset-with-content-api-schema.json",
  "title": "MpmCreateChangesetWithContentApi",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-secure-firewall-mpm-changeset-api-openapi.yml#/components/schemas/MpmCreateChangesetWithContentApi",
  "properties": {
    "changesetContent": {
      "$ref": "#/$defs/MpmChangesetContent"
    },
    "description": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "changesetContent",
    "name"
  ],
  "type": "object",
  "$defs": {
    "AppChange": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/AppChangeBody"
        },
        "extId": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "action",
        "id"
      ],
      "type": "object"
    },
    "AppChangeBody": {
      "properties": {
        "info": {
          "$ref": "#/$defs/AppInfoChange"
        }
      },
      "required": [
        "info"
      ],
      "type": "object"
    },
    "AppGroupChange": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/AppGroupChangeBody"
        },
        "extId": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "action",
        "id"
      ],
      "type": "object"
    },
    "AppGroupChangeBody": {
      "properties": {
        "apgs": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "aps": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "info": {
          "$ref": "#/$defs/AppGroupInfoChange"
        }
      },
      "type": "object"
    },
    "AppGroupInfoChange": {
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "AppInfoChange": {
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "EndpointChange": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/EndpointChangeBody"
        },
        "extId": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "action",
        "id"
      ],
      "type": "object"
    },
    "EndpointChangeBody": {
      "properties": {
        "info": {
          "$ref": "#/$defs/EndpointInfoChange"
        }
      },
      "required": [
        "info"
      ],
      "type": "object"
    },
    "EndpointGroupChange": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/EndpointGroupChangeBody"
        },
        "extId": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "action",
        "id"
      ],
      "type": "object"
    },
    "EndpointGroupChangeBody": {
      "properties": {
        "epgs": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "eps": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "info": {
          "$ref": "#/$defs/EndpointGroupInfoChange"
        }
      },
      "type": "object"
    },
    "EndpointGroupInfoChange": {
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "EndpointInfoChange": {
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ManagerChange": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/ManagerChangeBody"
        },
        "extId": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "action",
        "id"
      ],
      "type": "object"
    },
    "ManagerChangeBody": {
      "properties": {
        "apgs": {
          "items": {
            "$ref": "#/$defs/AppGroupChange"
          },
          "type": "array"
        },
        "aps": {
          "items": {
            "$ref": "#/$defs/AppChange"
          },
          "type": "array"
        },
        "epgs": {
          "items": {
            "$ref": "#/$defs/EndpointGroupChange"
          },
          "type": "array"
        },
        "eps": {
          "items": {
            "$ref": "#/$defs/EndpointChange"
          },
          "type": "array"
        },
        "info": {
          "$ref": "#/$defs/ManagerInfoChange"
        },
        "policies": {
          "items": {
            "$ref": "#/$defs/PolicyChange"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ManagerInfoChange": {
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "MpmChangesetContent": {
      "properties": {
        "extIds": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "managers": {
          "items": {
            "$ref": "#/$defs/ManagerChange"
          },
          "type": "array"
        }
      },
      "required": [
        "managers"
      ],
      "type": "object"
    },
    "MpmDynamicGroupRelationshipChanges": {
      "properties": {
        "add": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "rem": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "NatMatchInfoChange": {
      "properties": {
        "apgs": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "aps": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "dstEpgs": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "dstEps": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "srcEpgs": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "srcEps": {
          "$ref": "#/$defs/RelationshipChanges"
        }
      },
      "type": "object"
    },
    "NatRuleChange": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/NatRuleChangeBody"
        },
        "extId": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "action",
        "id"
      ],
      "type": "object"
    },
    "NatRuleChangeBody": {
      "properties": {
        "info": {
          "$ref": "#/$defs/NatRuleInfoChange"
        },
        "matchInfo": {
          "$ref": "#/$defs/NatMatchInfoChange"
        },
        "translatedInfo": {
          "$ref": "#/$defs/NatTranslatedInfoChange"
        }
      },
      "type": "object"
    },
    "NatRuleInfoChange": {
      "properties": {
        "appNatType": {
          "enum": [
            "MATCH",
            "STATIC"
          ],
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "dstNatType": {
          "enum": [
            "MATCH",
            "STATIC"
          ],
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "ruleGroup": {
          "type": "string"
        },
        "srcNatType": {
          "enum": [
            "MATCH",
            "STATIC",
            "HIDE"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "NatTranslatedInfoChange": {
      "properties": {
        "ap": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "dstEp": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "srcEp": {
          "$ref": "#/$defs/RelationshipChanges"
        }
      },
      "type": "object"
    },
    "PolicyChange": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/PolicyChangeBody"
        },
        "extId": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "action",
        "id"
      ],
      "type": "object"
    },
    "PolicyChangeBody": {
      "properties": {
        "info": {
          "$ref": "#/$defs/PolicyInfoChange"
        },
        "natRules": {
          "items": {
            "$ref": "#/$defs/NatRuleChange"
          },
          "type": "array"
        },
        "ruleOrder": {
          "$ref": "#/$defs/PolicyRuleOrderChange"
        },
        "rules": {
          "items": {
            "$ref": "#/$defs/RuleChange"
          },
          "type": "array"
        },
        "targets": {
          "$ref": "#/$defs/TargetRelationshipChanges"
        }
      },
      "type": "object"
    },
    "PolicyInfoChange": {
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "policyType": {
          "enum": [
            "SECURITY",
            "GOVERNANCE_PREPEND",
            "GOVERNANCE_APPEND",
            "NAT"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "PolicyRuleOrderChange": {
      "properties": {
        "newOrder": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        },
        "oldOrder": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "RelationshipChanges": {
      "properties": {
        "add": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        },
        "rem": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "RuleChange": {
      "properties": {
        "action": {
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "type": "string"
        },
        "body": {
          "$ref": "#/$defs/RuleChangeBody"
        },
        "extId": {
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "action",
        "id"
      ],
      "type": "object"
    },
    "RuleChangeBody": {
      "properties": {
        "apgs": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "aps": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "dstDgs": {
          "$ref": "#/$defs/MpmDynamicGroupRelationshipChanges"
        },
        "dstEpgs": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "dstEps": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "info": {
          "$ref": "#/$defs/RuleInfoChange"
        },
        "srcDgs": {
          "$ref": "#/$defs/MpmDynamicGroupRelationshipChanges"
        },
        "srcEpgs": {
          "$ref": "#/$defs/RelationshipChanges"
        },
        "srcEps": {
          "$ref": "#/$defs/RelationshipChanges"
        }
      },
      "type": "object"
    },
    "RuleInfoChange": {
      "properties": {
        "action": {
          "enum": [
            "PERMIT",
            "DENY"
          ],
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "fullyPinned": {
          "type": "boolean"
        },
        "onClose": {
          "type": "boolean"
        },
        "onInit": {
          "type": "boolean"
        },
        "ruleGroup": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "TargetRelationshipChanges": {
      "properties": {
        "add": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "rem": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  }
}