{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zoho-forms/json-schema/zoho-forms-record-submit-request-schema.json",
  "title": "RecordSubmitRequest",
  "description": "Request body of Add a record. data is the only accepted key.",
  "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/RecordSubmitRequest",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/RecordSubmitData"
    }
  },
  "$defs": {
    "RecordSubmitData": {
      "type": "object",
      "minProperties": 1,
      "description": "A JSON object with the field values to submit. Each key is the API name of a field from Get form details, and each value must use the format of that field type; see Values by field type below.",
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string",
            "description": "single_line: text, e.g. \"Jane\". If the field has a pattern, match it (d = one digit)."
          },
          {
            "type": "string",
            "description": "multi_line: text, may have line breaks."
          },
          {
            "type": "string",
            "description": "email: email address, e.g. \"jane@example.com\"."
          },
          {
            "type": "string",
            "description": "website: URL, e.g. \"https://www.example.com\"."
          },
          {
            "type": "string",
            "description": "regular_exp: text that matches the field's regex_pattern."
          },
          {
            "type": "integer",
            "description": "number: whole number, e.g. 25."
          },
          {
            "type": "string",
            "description": "decimal and currency: number as a string with \".\" for decimals, e.g. \"1250.75\"."
          },
          {
            "type": "integer",
            "description": "slider: whole number within the field's range, e.g. 7."
          },
          {
            "type": "integer",
            "description": "rating: whole number from 1 to rating_count, e.g. 4."
          },
          {
            "type": "string",
            "description": "date: \"yyyy-MM-dd\", e.g. \"2026-11-02\"."
          },
          {
            "type": "string",
            "description": "monthyear: \"yyyy-MM\", e.g. \"2026-11\"."
          },
          {
            "type": "string",
            "description": "time: \"HH:mm\", 24-hour, e.g. \"14:30\"."
          },
          {
            "type": "string",
            "description": "datetime: UTC, \"yyyy-MM-ddTHH:mm:ssZ\", e.g. \"2026-11-02T09:30:00Z\"."
          },
          {
            "type": "string",
            "description": "phone: phone number, e.g. \"9876543210\". If the country code is enabled, also send <api_name>_det."
          },
          {
            "type": "object",
            "description": "<phone api_name>_det: the phone's country code, e.g. {\"country_code\": \"+91\", \"country_iso_code\": \"in\"}.",
            "required": [
              "country_code",
              "country_iso_code"
            ],
            "properties": {
              "country_code": {
                "type": "string",
                "description": "Dial code with +, e.g. \"+91\"."
              },
              "country_iso_code": {
                "type": "string",
                "description": "Two lower-case letters, e.g. \"in\"."
              }
            }
          },
          {
            "type": "string",
            "description": "dropdown, radio and dataset_single: one choice, exactly as in choices[].value. If the choices are grouped, also send <api_name>_det."
          },
          {
            "type": "object",
            "description": "<choice api_name>_det: the group of the chosen value, e.g. {\"group_name\": \"South\"}.",
            "required": [
              "group_name"
            ],
            "properties": {
              "group_name": {
                "type": "string",
                "description": "Group name."
              }
            }
          },
          {
            "type": "array",
            "description": "checkbox, multiple_choice, image_choice and dataset_multi: list of choices from choices[].value, e.g. [\"Email\", \"SMS\"].",
            "items": {
              "type": "string",
              "description": "One choice."
            }
          },
          {
            "type": "boolean",
            "description": "decision_box, yes_or_no and terms_conditions: true or false."
          },
          {
            "type": "object",
            "description": "name and address: object keyed by the field's inputs[].api_name, e.g. {\"Name_First\": \"Jane\", \"Name_Last\": \"Doe\"}.",
            "additionalProperties": {
              "type": "string",
              "description": "Part value."
            }
          },
          {
            "type": "object",
            "description": "matrix_choice: object keyed by rows[].api_name; each row is a list of {columnname, value}, e.g. {\"Row_1\": [{\"columnname\": \"Good\", \"value\": \"true\"}]}.",
            "additionalProperties": {
              "type": "array",
              "description": "Cells of one row.",
              "items": {
                "type": "object",
                "description": "One cell.",
                "required": [
                  "columnname",
                  "value"
                ],
                "properties": {
                  "columnname": {
                    "type": "string",
                    "description": "Column, from columns[].value."
                  },
                  "value": {
                    "type": "string",
                    "description": "\"true\" for radio and checkbox columns; otherwise the choice or text."
                  }
                }
              }
            }
          },
          {
            "type": "string",
            "description": "signature: PNG image as \"data:image/png;base64,<data>\"."
          },
          {
            "type": "array",
            "description": "file_upload, image_upload, media_upload and smart_scan: not supported by these tools; leave them out.",
            "items": {
              "type": "object",
              "description": "One uploaded file.",
              "required": [
                "path"
              ],
              "properties": {
                "path": {
                  "type": "string",
                  "description": "Upload path."
                }
              }
            }
          },
          {
            "type": "array",
            "description": "subform: list of rows; each row is an object keyed by the subform's field api_names, e.g. [{\"SingleLine1\": \"Row 1\"}].",
            "items": {
              "type": "object",
              "description": "One row.",
              "additionalProperties": true
            }
          }
        ]
      }
    }
  }
}