{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zoho-forms/json-schema/zoho-forms-report-records-search-success-response-schema.json",
  "title": "ReportRecordsSearchSuccessResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zoho-forms-records-api-openapi.yml#/components/schemas/ReportRecordsSearchSuccessResponse",
  "type": "object",
  "required": [
    "status",
    "code",
    "data",
    "timestamp"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success"
      ],
      "description": "Status."
    },
    "code": {
      "type": "string",
      "enum": [
        "SUCCESS"
      ],
      "description": "Code."
    },
    "data": {
      "type": "object",
      "required": [
        "records",
        "info"
      ],
      "properties": {
        "records": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReportRecord"
          },
          "description": "Records."
        },
        "info": {
          "$ref": "#/$defs/ReportRecordsSearchInfo"
        }
      },
      "description": "Data."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Server time of the response, in UTC."
    }
  },
  "$defs": {
    "ReportRecord": {
      "type": "object",
      "description": "One record as shown in the report.",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[0-9]{1,19}$",
          "description": "ID of the record. Use it with Get a record."
        }
      },
      "additionalProperties": true
    },
    "ReportRecordsSearchInfo": {
      "type": "object",
      "description": "Paging and sort of this response. sort_by repeats the sort you sent. The total count is not returned.",
      "required": [
        "page",
        "limit",
        "sort_by",
        "has_more"
      ],
      "properties": {
        "page": {
          "type": "integer",
          "description": "Page number of the records returned, starting at 1."
        },
        "limit": {
          "type": "integer",
          "description": "Number of records per request."
        },
        "sort_by": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReportSortItem"
          },
          "description": "Fields the records are sorted by. Default: ADDED_TIME, descending."
        },
        "has_more": {
          "type": "boolean",
          "description": "More records exist. In the next request, set page to page + 1."
        }
      }
    },
    "ReportSortItem": {
      "type": "object",
      "required": [
        "api_name",
        "sort_order"
      ],
      "properties": {
        "api_name": {
          "type": "string",
          "description": "API name of the field to sort by."
        },
        "sort_order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "description": "Sort order."
        }
      }
    }
  }
}