{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatinbox-net/json-schema/chatinbox-net-v2-zoho-record-request-schema.json",
  "title": "V2ZohoRecordRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatinbox-net-openapi.yml#/components/schemas/V2ZohoRecordRequest",
  "type": "object",
  "properties": {
    "chatId": {
      "type": "integer",
      "format": "int32"
    },
    "owner": {
      "$ref": "#/$defs/ZohoAPIRecordOwner"
    },
    "recordID": {
      "type": [
        "string",
        "null"
      ]
    },
    "recordType": {
      "type": [
        "string",
        "null"
      ]
    },
    "parentRecordID": {
      "type": [
        "string",
        "null"
      ]
    },
    "parentRecordType": {
      "type": [
        "string",
        "null"
      ]
    },
    "recordLabel": {
      "type": [
        "string",
        "null"
      ]
    },
    "recordModuleName": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ZohoAPIRecord"
      }
    },
    "deals": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ZohoAPIRecord"
      }
    },
    "quotes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ZohoAPIRecord"
      }
    },
    "phoneNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "firstName": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastName": {
      "type": [
        "string",
        "null"
      ]
    },
    "fullName": {
      "type": [
        "string",
        "null"
      ]
    },
    "subject": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "dueDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "content": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "closingDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "recordDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "recordName": {
      "type": [
        "string",
        "null"
      ]
    },
    "contactName": {
      "type": [
        "string",
        "null"
      ]
    },
    "accountName": {
      "type": [
        "string",
        "null"
      ]
    },
    "amount": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "amountString": {
      "type": [
        "string",
        "null"
      ]
    },
    "filePath": {
      "type": [
        "string",
        "null"
      ]
    },
    "filePaths": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "customFields": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ZohoAPIRecordCustomField"
      }
    },
    "callDuration": {
      "type": "integer",
      "format": "int32"
    },
    "callStartTime": {
      "type": [
        "string",
        "null"
      ]
    },
    "callType": {
      "type": [
        "string",
        "null"
      ]
    },
    "callResult": {
      "type": [
        "string",
        "null"
      ]
    },
    "pbxCallID": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ZohoAPIRecord": {
      "type": "object",
      "properties": {
        "owner": {
          "$ref": "#/$defs/ZohoAPIRecordOwner"
        },
        "recordID": {
          "type": [
            "string",
            "null"
          ]
        },
        "recordType": {
          "type": [
            "string",
            "null"
          ]
        },
        "parentRecordID": {
          "type": [
            "string",
            "null"
          ]
        },
        "parentRecordType": {
          "type": [
            "string",
            "null"
          ]
        },
        "recordLabel": {
          "type": [
            "string",
            "null"
          ]
        },
        "recordModuleName": {
          "type": [
            "string",
            "null"
          ]
        },
        "notes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ZohoAPIRecord"
          }
        },
        "deals": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ZohoAPIRecord"
          }
        },
        "quotes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ZohoAPIRecord"
          }
        },
        "phoneNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "fullName": {
          "type": [
            "string",
            "null"
          ]
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "dueDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "content": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "closingDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "recordDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "recordName": {
          "type": [
            "string",
            "null"
          ]
        },
        "contactName": {
          "type": [
            "string",
            "null"
          ]
        },
        "accountName": {
          "type": [
            "string",
            "null"
          ]
        },
        "amount": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "amountString": {
          "type": [
            "string",
            "null"
          ]
        },
        "filePath": {
          "type": [
            "string",
            "null"
          ]
        },
        "filePaths": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "customFields": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ZohoAPIRecordCustomField"
          }
        },
        "callDuration": {
          "type": "integer",
          "format": "int32"
        },
        "callStartTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "callType": {
          "type": [
            "string",
            "null"
          ]
        },
        "callResult": {
          "type": [
            "string",
            "null"
          ]
        },
        "pbxCallID": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "ZohoAPIRecordCustomField": {
      "type": "object",
      "properties": {
        "fieldApiName": {
          "type": [
            "string",
            "null"
          ]
        },
        "fieldLabel": {
          "type": [
            "string",
            "null"
          ]
        },
        "fieldValue": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "ZohoAPIRecordOwner": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}