{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zoho-sheet/json-schema/zoho-sheet-write-spreadsheet-request-schema.json",
  "title": "WriteSpreadsheetRequest",
  "description": "Request parameters for writing cell data to a spreadsheet",
  "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/WriteSpreadsheetRequest",
  "type": "object",
  "required": [
    "method",
    "worksheet_name",
    "cell_data"
  ],
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "worksheet.records.add",
        "worksheet.records.update"
      ],
      "description": "API method identifier for writing worksheet records"
    },
    "worksheet_name": {
      "type": "string",
      "description": "Name of the worksheet to write to"
    },
    "header_row": {
      "type": "integer",
      "description": "Row number treated as header (1-indexed)",
      "default": 1
    },
    "cell_data": {
      "type": "string",
      "description": "JSON string array of row data objects to write"
    }
  }
}