{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Zoho Cliq Datastores Schemas",
"definitions": {
"updaterecord_response": {
"type": "object",
"description": "Response envelope returned when a datastore record is retrieved or updated.",
"properties": {
"url": {
"type": "string",
"description": "API endpoint URL for the record resource.",
"example": "/api/v3/datastores/shejbwfz/records/227828000000128010"
},
"type": {
"type": "string",
"description": "Resource type identifier.",
"example": "datastore_record"
},
"data": {
"type": "object",
"description": "The record's field values along with system-managed metadata fields.",
"properties": {
"modified_time": {
"type": "string",
"description": "Unix epoch timestamp (ms) when the record was last modified.",
"example": "1777360403455"
},
"added_time": {
"type": "string",
"description": "Unix epoch timestamp (ms) when the record was first created.",
"example": "1777360402254"
},
"id": {
"type": "string",
"description": "Unique numeric identifier of the record.",
"example": "227828000000128010"
}
},
"additionalProperties": true
}
},
"example": {
"url": "/api/v3/datastores/shejbwfz/records/227828000000128010",
"type": "datastore_record",
"data": {
"modified_time": "1777360403455",
"empid": "1001",
"isactive": false,
"salary": "0",
"department": "",
"id": "227828000000128010",
"empname": "John Doe Jr.",
"added_time": "1777360402254",
"notes": "Senior Engineer in Platform Team"
}
}
},
"DatastoreResponse": {
"type": "object",
"description": "Datastores API response envelope.",
"properties": {
"url": {
"type": "string",
"example": "/api/v3/datastores"
},
"type": {
"type": "string",
"example": "datastore"
},
"data": {
"type": "object",
"additionalProperties": true
}
},
"example": {
"url": "/api/v3/datastores",
"type": "datastore",
"data": {
"unique_name": "empdir",
"name": "Employee Directory",
"id": "227828000000132001",
"creator": {
"name": "NP NTC",
"id": "119440882"
},
"status": "enabled",
"fields": [
{
"default_value": "",
"masked": false,
"name": "Notes",
"unique_name": "notes",
"type": "large-text",
"mandatory": false,
"id": "17202020414617773604009000"
},
{
"default_value": "0",
"masked": false,
"name": "Employee ID",
"unique_name": "empid",
"type": "number",
"mandatory": true,
"id": "17202020414617773604009001"
},
{
"default_value": "",
"masked": false,
"name": "Employee Name",
"unique_name": "empname",
"type": "limited-text",
"mandatory": true,
"id": "17202020414617773604009002"
},
{
"default_value": "true",
"masked": false,
"name": "Active Status",
"unique_name": "isactive",
"type": "boolean",
"mandatory": false,
"id": "17202020414617773604009003"
}
],
"type": "custom",
"description": "V3 API test datastore",
"unique_keys": [
[
"empid"
]
],
"scope": "personal"
}
}
},
"no-response": {
"type": "object",
"description": "Represents an empty server response where no content is returned.",
"properties": {
"Response Code": {
"type": "string",
"description": "HTTP response code indicating no content is returned.",
"example": "204 No response"
}
}
},
"AddRecordRequest": {
"type": "object",
"description": "Request body schema to add a new record to the products database.",
"required": [
"values"
],
"properties": {
"values": {
"type": "object",
"description": "Key-value pairs representing the product attributes to be added as a new record.",
"additionalProperties": true
}
},
"example": {
"values": {
"productid": "1001",
"productcategory": "zylker",
"instock": true,
"productsecretcode": "secretkey123",
"productdescription": "zylker description"
}
}
},
"UpdateRecordRequest": {
"type": "object",
"description": "Request body schema to update an existing record in the products database.",
"required": [
"values"
],
"properties": {
"values": {
"type": "object",
"description": "Key-value pairs representing the fields to be updated in the record.",
"additionalProperties": true
}
},
"example": {
"values": {
"instock": false,
"productdescription": "zylker products"
}
}
},
"Products-DatabaseResponse": {
"type": "object",
"description": "Response schema representing a single product record in the database.",
"properties": {
"productcateogry": {
"type": "string",
"description": "Category of the product.",
"example": "zylker"
},
"id": {
"type": "string",
"description": "Unique identifier of the product record in the database.",
"example": "14756000888008001"
},
"productid": {
"type": "string",
"description": "Product identifier code.",
"example": "1001"
},
"instock": {
"type": "boolean",
"description": "Indicates whether the product is in stock.",
"example": true
},
"productsecretcode": {
"type": "string",
"description": "Secret code assigned to the product.",
"example": "secretkey123"
},
"productdescription": {
"type": "string",
"description": "Detailed description of the product.",
"example": "zylker description"
}
},
"additionalProperties": true
},
"product-database-list-records": {
"type": "object",
"description": "Response schema containing a list of product records from the database.",
"properties": {
"list": {
"type": "array",
"description": "Array of product record objects.",
"items": {
"type": "object",
"description": "A single product record object.",
"properties": {
"productcateogry": {
"type": "string",
"description": "Category of the product."
},
"id": {
"type": "string",
"description": "Unique identifier of the product record."
},
"productid": {
"type": "string",
"description": "Product identifier code."
},
"instock": {
"type": "boolean",
"description": "Indicates whether the product is in stock."
},
"productsecretcode": {
"type": "string",
"description": "Secret code assigned to the product."
},
"productdescription": {
"type": "string",
"description": "Detailed description of the product."
}
}
},
"example": [
{
"productcateogry": "zylker",
"id": "14756000000008008",
"productid": "1004",
"instock": true,
"productsecretcode": "secretkey234",
"productdescription": "zylker description"
},
{
"productcateogry": "zylcal",
"id": "14756000000008003",
"productid": "1003",
"instock": false,
"productsecretcode": "secretkey123",
"productdescription": "zylcal description"
},
{
"productcateogry": "zylker",
"id": "14756000000008004",
"productid": "1002",
"instock": true,
"productsecretcode": "secretkey123",
"productdescription": "zylker description"
},
{
"productcateogry": "zylker",
"id": "14756000000008005",
"productid": "1001",
"instock": true,
"productsecretcode": "secretkey897",
"productdescription": "zylker description"
}
]
}
}
},
"base64_regex": {
"type": "string",
"description": "Base64-encoded pagination or sync token used for cursor-based pagination and incremental data sync."
},
"editplatformdatabase_v2": {
"type": "object",
"description": "Payload for updating datastore metadata.",
"properties": {
"unique_name": {
"type": "string",
"maxLength": 20,
"description": "Updated datastore unique name.
\nAccepts lowercase letters, numbers, and underscores only, and must start with a letter. This is used in API endpoints and should be unique across datastores.
\nMaximum length: 20 characters.\n"
},
"name": {
"type": "string",
"maxLength": 20,
"description": "Updated datastore display name.
\nCan contain letters, numbers, and spaces. This is used for display purposes in the UI and can be non-unique.
\nMaximum length: 20 characters.\n"
},
"description": {
"type": "string",
"maxLength": 250,
"description": "Updated datastore description.
\nA brief description about the datastore's purpose or contents.
\nMaximum length: 250 characters.\n"
},
"unique_keys": {
"type": "array",
"maxItems": 4,
"description": "Updated unique key constraints for the datastore. Replaces the existing set of constraints entirely.
\n
unique_name values that must be collectively unique across all records.unique_name values that must be collectively unique across all records.unique_name values.password field must be provided to specify the password to use for protecting the file.\n"
},
"password": {
"type": "string",
"minLength": 8,
"maxLength": 20,
"description": "Password to protect the exported file. This field is required if password_protected is true.unique_names as keys. Supported comparison operators: =, ==, !=, >, >=, <, <=, like, not like, in (max 10 values), not in (max 10 values). Combine conditions with && (AND) or || (OR), and use parentheses for grouping. Max 10 clauses.