{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zoho/main/json-schema/zoho-rule-group-update-request-schema.json",
  "title": "RuleGroupUpdateRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zoho-rulegroup-api-openapi.yml#/components/schemas/RuleGroupUpdateRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": ""
    },
    "name": {
      "type": "string",
      "description": ""
    },
    "description": {
      "type": "string",
      "description": ""
    },
    "engine": {
      "type": "object",
      "description": "",
      "properties": {
        "id": {
          "type": "string",
          "description": ""
        },
        "systemName": {
          "type": "string",
          "description": ""
        }
      }
    },
    "departmentProperties": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "description": "",
        "properties": {
          "id": {
            "type": "string",
            "description": ""
          },
          "ruleGroupStatus": {
            "type": "string",
            "description": ""
          },
          "ruleGroupOrder": {
            "type": "string",
            "description": ""
          },
          "ruleGroupExecutionType": {
            "type": "string",
            "description": ""
          }
        }
      }
    },
    "module": {
      "type": "object",
      "description": "",
      "properties": {
        "id": {
          "type": "string",
          "description": ""
        },
        "apiName": {
          "type": "string",
          "description": ""
        }
      },
      "required": [
        "apiName",
        "id"
      ]
    },
    "events": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "description": "",
        "properties": {
          "sysName": {
            "type": "string",
            "description": ""
          },
          "userCriteria": {
            "type": "object",
            "description": "",
            "properties": {
              "moduleMapping": {
                "type": "object",
                "description": "",
                "properties": {
                  "primaryModule": {
                    "type": "object",
                    "description": "",
                    "properties": {
                      "apiName": {
                        "type": "string",
                        "description": ""
                      }
                    }
                  }
                }
              },
              "criteria": {
                "$ref": "./Criteria.json#/components/schemas/criteriaFieldsObject"
              }
            }
          }
        }
      }
    },
    "rules": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "description": "",
        "properties": {
          "id": {
            "type": "string",
            "description": ""
          },
          "name": {
            "type": "string",
            "description": ""
          },
          "order": {
            "type": "integer",
            "description": ""
          },
          "clusters": {
            "type": "array",
            "description": "",
            "items": {
              "type": "object",
              "description": "",
              "properties": {
                "id": {
                  "type": "string",
                  "description": ""
                },
                "name": {
                  "type": "string",
                  "description": ""
                },
                "type": {
                  "type": "string",
                  "description": ""
                },
                "nodes": {
                  "type": "array",
                  "description": "",
                  "items": {
                    "type": "object",
                    "description": "",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": ""
                      },
                      "name": {
                        "type": "string",
                        "description": ""
                      },
                      "executionType": {
                        "type": "string",
                        "description": ""
                      },
                      "type": {
                        "type": "string",
                        "description": ""
                      },
                      "propertyType": {
                        "type": "string",
                        "description": ""
                      },
                      "propertyId": {
                        "type": "string",
                        "description": ""
                      },
                      "childNodes": {
                        "type": "array",
                        "description": "",
                        "items": {
                          "type": "object",
                          "description": "",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": ""
                            },
                            "name": {
                              "type": "string",
                              "description": ""
                            },
                            "executionType": {
                              "type": "string",
                              "description": ""
                            },
                            "type": {
                              "type": "string",
                              "description": ""
                            },
                            "propertyType": {
                              "type": "string",
                              "description": ""
                            },
                            "entityInfo": {
                              "type": "object",
                              "description": "",
                              "properties": {
                                "moduleMapping": {
                                  "type": "object",
                                  "description": "",
                                  "properties": {
                                    "primaryModule": {
                                      "type": "object",
                                      "description": "",
                                      "properties": {
                                        "apiName": {
                                          "type": "string",
                                          "description": ""
                                        }
                                      }
                                    }
                                  }
                                },
                                "criteria": {
                                  "$ref": "./Criteria.json#/components/schemas/criteriaFieldsObject"
                                }
                              }
                            },
                            "childNodes": {
                              "type": "array",
                              "description": "",
                              "items": {
                                "$ref": "#/$defs/items"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "required": [
    "departmentProperties",
    "engine",
    "events",
    "id",
    "module",
    "rules"
  ]
}