{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zoho-sheet/json-schema/zoho-sheet-api-response-schema.json",
  "title": "ApiResponse",
  "description": "Standard successful response from Zoho Sheet Data API",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zoho-sheet-workbook-api-openapi.yml#/components/schemas/ApiResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success",
        "failure"
      ],
      "description": "Indicates whether the operation succeeded"
    },
    "spreadsheet_name": {
      "type": "string",
      "description": "Name of the spreadsheet"
    },
    "worksheet_name": {
      "type": "string",
      "description": "Name of the worksheet (for worksheet-scoped operations)"
    },
    "header_row": {
      "type": "integer",
      "description": "Header row index used for the operation"
    },
    "records": {
      "type": "array",
      "description": "Array of data records returned by read operations",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "total_row_count": {
      "type": "integer",
      "description": "Total number of data rows in the worksheet"
    },
    "worksheet_list": {
      "type": "array",
      "description": "List of worksheet names in the workbook",
      "items": {
        "type": "object",
        "properties": {
          "sheet_name": {
            "type": "string"
          },
          "sheet_index": {
            "type": "integer"
          }
        }
      }
    }
  }
}