Add Data to Worksheet
To add data to a worksheet, you need the following 3 parameters:
- 1.Token
- 2.Worksheet Id
- 3.App Id
POST
https://api.tablesprint.com/api/platform/worksheet/row/{appId}/{worksheetId}
URL Parameters​
Parameter | Type | Required | Description |
---|---|---|---|
appId | string | Yes | The unique identifier of the application |
worksheetId | string | Yes | The unique identifier of the worksheet |
To get the URL parameters, follow the steps below:
- 1.Click on the downward arrow beside the worksheet name.
- 2.An options dialog box will open. Click on More Info.
- 3.You will now get the
worksheetId
andappId
.
Request Body Parameters​
Parameter | Type | Required | Description |
---|---|---|---|
body | object | Yes | A row object representing the new record to be created. |
Example:
"data": [
{
"columnName1": "Product A",
"columnName2": "20",
"columnName3": "In Stock"
}
],
Example Request:​
Here's an example of how to make this request:
curl --request POST --url https://api.tablesprint.com/api/platform/worksheet/row/app123/worksheet456 --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' --header 'Content-Type: application/json' --data-raw '{
"data": [
{
"feedback": "Test Feedback 2",
"student mobile": "+917077038913",
"time": "2025-01-02T11:33:00.000Z"
}
]
}'
Request Headers
Header | Value |
---|---|
Authorization | Bearer YOUR_ACCESS_TOKEN |
Content-Type | application/json |
Response​
A successful request returns the HTTP 200 OK
status code and JSON response body.
In case if you get other response codes then : Refer here
{
"results": [
{
"hggffj": "newValue",
"Dropdown": null,
"richtext": null,
"Contact2": null,
"Contact": null,
"dasfa": null,
"pn germany": "49",
"email": null,
"dropdowm": null,
"IndianPhone": null,
"_id": "317e589400"
}
],
"success": true
}
Response Headers
Header | Description |
---|---|
Content-Type | application/json |