ZapDigits
  1. Datasets
ZapDigits
  • Introduction
  • Authentication
  • Datasets
  • API Limits
  • Datasets
    • Create a dataset
      POST
    • Retrieve a dataset
      GET
    • Update a dataset
      PATCH
    • Delete a dataset
      DELETE
  • Schemas
    • Datasets
  1. Datasets

Create a dataset

POST
datasets
Params:
name = Name of your metric, you have to use the same name when you want to have multiple datasets for one metric
chartTypes = can be one or all of these ["table", "number", "line", "bar"]
data = array of data. example:
[
{
"amount": 12,
"timestamp": "2025-01-01T12:00:00Z"
}
]
if your have single param true then you can add multiple data in the data array otherwise you must have only one item in the array.
single = if you want to have one metric with multiple data then you can send this true

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dash.zapdigits.com/api/v1/datasets' \
--header 'x-api-key: yourapikeyhere' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "completed-tasks",
    "chartTypes": [
        "number", "table", "bar", "line"
    ],
    "data": [
        {
            "amount": 12,
            "timestamp": "2025-01-01T12:00:00Z"
        }
    ],
    "single": false
}'
Response Response Example
{}
Modified at 2025-09-17 18:22:19
Previous
API Limits
Next
Retrieve a dataset
Built with