Skip to main content
This guide documents the dataset endpoints in visualsApi for creating new datasets and syncing assets to R2. Base URL (prod): https://api.idoptlab.com/api All write operations require: Authorization: Bearer <API_KEY>

1. Create a new dataset (JSON/text payload)

POST /api/datasets

2. Create a new dataset (base64 payload)

POST /api/datasets

3. Sync bundled assets into R2

Use this when a file already exists under visualsApi/public/data/... and you want it copied into R2. POST /api/datasets/sync-assets

4. List, fetch, and delete datasets

Notes

  • POST /api/datasets is best for brand-new payloads from scripts/tools.
  • POST /api/datasets/sync-assets is best for promoting bundled static assets into R2.
  • Existing raw upload endpoint remains available: PUT /api/datasets/{key}.