Home / Zoho - Reports - API - Home / Data API / Adding Single Row

Adding Single Row


Adding a Single Row

1. It is mandatory to use HTTPS in all API requests instead of HTTP request. HTTP is not supported

2. Always use https://reportsapi.zoho.com as the API request URL.

This API allows you to add a single row into a specified table.

Sample Request

A sample request for adding a row to the "EmployeeDetails" table inside the database "EmployeeDB"


Data Sent as POST parameters (URL Encoded)
&Name=Gary&Date Of Birth=12-Jun-1980&Country=USA&Salary=10000

Specifying the action

In the query string of the URL, the ZOHO_ACTION parameter should be ADDROW. For other mandatory query string parameters such as ZOHO_OUTPUT_FORMAT, refer this link.

Note: Value of ZOHO_ACTION parameter should be in the same case(UPPER CASE) as given in this document.

Data for the Row

The column values for the row should be passed as POST parameters in <columnname>=<value> format. (The parameters should be in application/x-www-form-urlencoded format).

<columnname> - Refers to the name of the column in the table to which the value is added
<value> - Refers to the corresponding value to be added for this column

Sample Success Response

The following code snippets provides the response in JSON and XML formats for the sample refered above.

JSON Format

"url": "/api/abc@zoho.com/EmployeeDB/EmployeeDetails",
"action": "ADDROW",
"column_order":["Name","Date Of Birth","Salary","Country"],
//All the columns in the row , including formula columns

XML Format

<?xml version="1.0" encoding="UTF-8" ?>
<response url ="/api/abc@zoho.com/EmployeeDB/EmployeeDetails"action="ADDROW">
<!-- All the columns in the row , including formula columns -->
<column name="Date Of Birth">12-Jun-1980</column>
<column name="Basic">10000</column>
<column name="Country">USA</column>

    Post a comment

    Your Name or E-mail ID (mandatory)

    Note: Your comment will be published after approval of the owner.

     RSS of this page