{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/zoho/main/json-schema/zoho-territory-getschema-schema.json", "title": "TerritoryGETSchema", "description": "The `items` field of type `object`.", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/zoho-settings-api-openapi.yml#/components/schemas/TerritoryGETSchema", "type": "object", "properties": { "created_time": { "type": "string", "format": "date-time", "description": "The `created_time` property." }, "modified_time": { "type": "string", "format": "date-time", "description": "The `modified_time` property." }, "manager": { "oneOf": [ { "type": "object", "properties": { "name": { "type": "string", "description": "The `name` property.", "maxLength": 100 }, "id": { "type": "string", "description": "The `id` property.", "maxLength": 100 }, "zuid": { "type": "string", "description": "The `zuid` property.", "maxLength": 100 }, "status": { "type": "string", "enum": [ "deleted", "rejected", "active", "closed", "disabled" ], "description": "The `status` property." } }, "required": [ "name", "id" ], "description": "The `manager` property.", "additionalProperties": false }, { "type": "null", "description": "Literal string \"null\" when not configured" } ] }, "reporting_to": { "type": [ "object", "null" ], "properties": { "name": { "type": "string", "description": "The `name` property.", "maxLength": 100 }, "id": { "type": "string", "description": "The `id` property.", "maxLength": 100 } }, "required": [ "name", "id" ], "description": "The `reporting_to` property.", "additionalProperties": false }, "permission_type": { "type": "string", "enum": [ "read_write_delete", "read_only" ], "description": "The `permission_type` property." }, "modified_by": { "type": "object", "properties": { "name": { "type": "string", "description": "The `name` property.", "maxLength": 100 }, "id": { "type": "string", "description": "The `id` property.", "maxLength": 100 } }, "required": [ "name", "id" ], "description": "The `modified_by` property.", "additionalProperties": false }, "description": { "oneOf": [ { "type": [ "string", "null" ], "const": null, "description": "Literal string \"null\" when not configured" }, { "type": "string", "description": "The `description` property.", "maxLength": 100 } ] }, "id": { "type": "string", "description": "The `id` property.", "maxLength": 100 }, "created_by": { "type": "object", "properties": { "name": { "type": "string", "description": "The `name` property.", "maxLength": 100 }, "id": { "type": "string", "description": "The `id` property.", "maxLength": 100 } }, "required": [ "name", "id" ], "description": "The `created_by` property.", "additionalProperties": false }, "account_rule_criteria": { "oneOf": [ { "$ref": "#/$defs/CriteriaObject", "description": "No description provided.", "x-zs-$id": "AccountRuleCriteriaGET" }, { "$ref": "#/$defs/GroupCriteriaGET", "description": "No description provided." }, { "type": [ "string", "null" ], "const": null, "description": "Literal string \"null\" when not configured" } ], "description": "The `account_rule_criteria` property." }, "deal_rule_criteria": { "oneOf": [ { "$ref": "#/$defs/CriteriaObject", "description": "No description provided." }, { "$ref": "#/$defs/GroupCriteriaGET", "description": "No description provided." }, { "type": [ "string", "null" ], "const": null, "description": "Literal string \"null\" when not configured" } ], "description": "The `deal_rule_criteria` property." }, "lead_rule_criteria": { "oneOf": [ { "$ref": "#/$defs/CriteriaObject", "description": "No description provided." }, { "$ref": "#/$defs/GroupCriteriaGET", "description": "No description provided." }, { "type": [ "string", "null" ], "const": null, "description": "Literal string \"null\" when not configured" } ], "description": "The `lead_rule_criteria` property." }, "name": { "type": "string", "maxLength": 50, "description": "The `name` property." }, "api_name": { "type": "string", "pattern": "(.?)([A-Za-z])(.)", "description": "The `api_name` property.", "maxLength": 100 } }, "required": [ "created_time", "modified_time", "manager", "reporting_to", "permission_type", "modified_by", "description", "id", "created_by", "name", "api_name" ], "additionalProperties": false, "$defs": { "CriteriaObject": { "description": "criteria schema for post", "additionalProperties": true, "type": "object", "properties": { "comparator": { "description": "comparator value", "type": [ "string", "null" ], "maxLength": 100 }, "field": { "description": "field to compare the value with", "additionalProperties": true, "type": "object", "properties": { "api_name": { "description": "API name of the field", "type": [ "string", "null" ], "maxLength": 100 }, "id": { "description": "field id", "type": [ "string", "null" ], "maxLength": 100 } } }, "value": { "oneOf": [ { "description": "value", "type": "boolean" }, { "description": "value", "maxLength": 255, "type": "string" }, { "description": "value", "type": "number" }, { "description": "value", "additionalProperties": true, "type": "object" }, { "description": "value", "type": "array", "maxItems": 250, "items": { "oneOf": [ { "description": "value", "type": "string", "maxLength": 255 }, { "additionalProperties": true, "description": "value", "type": "object" } ] } } ] } } }, "GroupCriteriaGET": { "type": "object", "properties": { "group_operator": { "type": "string", "description": "The `group_operator` property of the `Group_Criteria_GET` schema.", "maxLength": 100 }, "group": { "type": "array", "items": { "oneOf": [ { "type": "array", "items": { "type": "object", "properties": { "comparator": { "type": "string", "description": "The `comparator` property of the `Group_Criteria_GET` schema.", "maxLength": 100 }, "field": { "type": "object", "properties": { "api_name": { "type": "string", "description": "The `api_name` property of the `Group_Criteria_GET` schema.", "maxLength": 100 }, "id": { "type": "string", "description": "The `id` property of the `Group_Criteria_GET` schema.", "maxLength": 100 } }, "required": [ "api_name", "id" ], "description": "The `field` property of the `Group_Criteria_GET` schema.", "additionalProperties": false }, "value": { "type": "object", "description": "The `value` property of the `Group_Criteria_GET` schema.", "additionalProperties": false } }, "required": [ "comparator", "field", "value" ], "description": "The `items` field of type `object`.", "additionalProperties": false }, "description": "A `array` value.", "maxItems": 100 } ], "description": "The `items` field." }, "description": "The `group` property of the `Group_Criteria_GET` schema.", "maxItems": 100 } }, "required": [ "group_operator", "group" ], "description": "Schema for `Group_Criteria_GET`.", "additionalProperties": false } } }