Retrieves available criteria columns for building dynamic custom group filters

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Returns all available criteria columns grouped by category (computer, ipRange, etc.). Each column includes its ID, display name, data type, column category, and list of applicable comparison operators. This endpoint is typically the first call when building a dynamic custom group filter. Use the returned columnId, comparator, and criteriaValue options to build the criteriaList when calling Create Dynamic CG or Update Dynamic CG. To discover valid values for a specific column, call Get Dynamic CG Column Values with the columnId from this response.

Request URL

https://{serverurl}/api/1.4/customgroup/dynamic/criteriaPattern

Scope

DesktopCentralCloud.Common.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/jsonapplication/jsonCopied!

Must be application/json. Only JSON responses are supported.

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url https://appdomain/api/1.4/customgroup/dynamic/criteriaPattern \
  --header 'Accept: application/json' \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52'
Show full

Response Parameters

- HTTP code 200

Response Body - application/json


JSON object
Hide Sub-Attributes
message_typestring

Always 'dynamic' for this endpoint.

message_responseJSON object

Response payload container.

Show Sub-Attributes
dynamicJSON object

Response payload.

Show Sub-Attributes
*JSON array

Dynamic keys grouped by resolved COLUMN_CATEGORY from customGroup-criteria.xml. Typical keys: 'Operating System', 'Computer', 'Software'. Each array contains the criteria columns belonging to that category.

Show Sub-Attributes
JSON object
Show Sub-Attributes
columnIdlong

Unique column ID — use in criteriaList[].columnId when calling Create Dynamic CG or Update Dynamic CG.

columnValuestring

Internal DB column identifier (e.g., OS_NAME, OS_VERSION, SOFTWARE_NAME).

displayNamestring

Localized display label of the criteria column.

columnCategorystring

UI grouping: 'Operating System', 'Computer', 'Software', 'Network', etc.

colDataTypestring

Data type of the column values (e.g., 'CHAR', 'INTEGER', 'BIGINT'). Use to format values supplied via criteriaList[].criteriaValue.

applicableCriteriaTypeJSON array

Operators for this column. Use the 'value' field as criteriaList[].comparator when calling Create Dynamic CG or Update Dynamic CG.

Show Sub-Attributes
JSON object
Show Sub-Attributes
valuestring

Operator ID — use as criteriaList[].comparator when calling Create Dynamic CG or Update Dynamic CG. Values: 'equal', 'not equal', 'contains', 'not contains', 'starts with', 'not starts with', 'ends with', 'greater than', 'greater or equal', 'less than', 'less or equal', 'between', 'not between', 'on', 'after', 'before'.

labelstring

Localized display label: 'is', 'is not', 'contains', 'does not contain', 'in range', etc.

additionalValuesJSON object

[Script-based criteria columns only] Script execution metadata. Present only when this criteria column represents a script check; absent otherwise.

Show Sub-Attributes
exitCodestring

Comma-separated expected exit codes (e.g., '0' for success, '0,1' for success or warning).

scriptIdstring

Resource ID of the custom script in the scripts repository.

scriptNamestring

File name of the script (e.g., 'ComplianceCheck.bat').

descriptionstring

Human-readable description of what the script checks.

message_versionstring

API version: '1.4'.

statusstring

'success' when the request completed without errors.

- HTTP code 500

Response Body - application/json


JSON object
Hide Sub-Attributes
message_typestring

Always 'dynamic' for this endpoint.

message_versionstring

API version: '1.4'.

statusstring

Always 'error' for error responses.

error_codestring

Internal error code: '1003' (INTERNAL_ERROR).

error_descriptionstring

Resolved I18N message, typically: An internal error occurred while processing the request.

Possible Response Codes

200HTTP code
500HTTP code

Sample Response: HTTP 200

Criteria columns grouped by resolved COLUMN_CATEGORY with real column IDs from customGroup-criteria.xml.

Copied!
  {
    "message_type": "dynamic",
    "message_response": {
      "dynamic": {
        "Computer": [
          {
            "columnCategory": "Computer",
            "columnId": 3,
            "displayName": "System Type",
            "applicableCriteriaType": [
              {
                "label": "is",
                "value": "equal"
              }
            ],
            "columnValue": "PROCESSOR_ARCH_NAME"
          },
          {
            "columnCategory": "Computer",
            "columnId": 11,
            "displayName": "IP Address",
            "applicableCriteriaType": [
              {
                "label": "is",
                "value": "equal"
              }
            ],
            "columnValue": "IPADDR_LONG"
          }
        ],
        "Operating System": [
          {
            "columnCategory": "Operating System",
            "columnId": 1,
            "displayName": "Operating System",
            "applicableCriteriaType": [
              {
                "label": "is",
                "value": "equal"
              },
              {
                "label": "is not",
                "value": "not equal"
              },
              {
                "label": "contains",
                "value": "contains"
              },
              {
                "label": "does not contain",
                "value": "not contains"
              }
            ],
            "columnValue": "OS_NAME"
          },
          {
            "columnCategory": "Operating System",
            "columnId": 2,
            "displayName": "OS Version",
            "applicableCriteriaType": [
              {
                "label": "is",
                "value": "equal"
              },
              {
                "label": "is not",
                "value": "not equal"
              }
            ],
            "columnValue": "OS_VERSION"
          }
        ],
        "Software": [
          {
            "columnCategory": "Software",
            "columnId": 5,
            "displayName": "Software Name",
            "applicableCriteriaType": [
              {
                "label": "is",
                "value": "equal"
              },
              {
                "label": "contains",
                "value": "contains"
              }
            ],
            "columnValue": "SOFTWARE_NAME"
          },
          {
            "columnCategory": "Software",
            "columnId": 6,
            "displayName": "Software Version",
            "applicableCriteriaType": [
              {
                "label": "is",
                "value": "equal"
              },
              {
                "label": "is not",
                "value": "not equal"
              }
            ],
            "columnValue": "SOFTWARE_VERSION"
          }
        ]
      }
    },
    "message_version": "1.4",
    "status": "success"
  }
                
Show full

Sample Response: HTTP 500

Unexpected server-side failure retrieving criteria pattern.

Copied!
  {
    "error_description": "An internal error occurred while processing the request.",
    "message_type": "dynamic",
    "error_code": "1003",
    "message_version": "1.4",
    "status": "error"
  }
                
Show full

Duration: 1 minute | Threshold: 30 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.