Create Sheet

POST/v1/data/:id/:sheet?

This endpoint allows you to create a new sheet (tab) within a given spreadsheet. You can specify the name of the sheet and the first row (which typically contains column headers).

Use the name field to define the sheet's name, and the firstRow field to set the column headers for the new sheet.

id
stringRequired
Example: aace0271-c068-499f-bb40-83354a35eebc
The unique identifier for the API

name
stringRequired
Example: Transactions
Name of the new sheet (tab)
firstRow
array<string>Optional
Example:
[
  "id",
  "transaction_id",
  "amount",
  "source",
  "destination"
]
First row of the newly created sheet(tab)

Request Example

curl -X POST https://api.sheet2db.dev/v1/data/aace0271-c068-499f-bb40-83354a35eebc/sheet \
-H "Content-Type: application/json" \
-d '{
  "name": "Transactions",
  "firstRow": "[
      "id",
      "transaction_id",
      "amount",
      "source",
      "destination"
  ]"
}'

Successful Response Example

{
  "success": true
}