Data Library

Create or replace a workspace dataset

Changed on

Creates the workspace's dataset with this key, or replaces its definition when it exists; every field the body omits returns to its default. The dataset belongs to the workspace of the key; shared datasets are written by Talonic only. Requires the write scope. A document.extract dataset needs record_schema and a string params.url. source_url defaults to params.url when omitted.

post/v1/data-library/datasets

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Request body

DataLibraryDatasetInput required
key, string required

Dataset key, case-insensitive match of the pattern.

label, string required
kind, string
publisher, string nullable
source_url, string nullable
licence, string nullable
connector, 'manual' | 'document.extract' | 'eu_ets.union_registry'

Code that reads the source. manual datasets are written only through the records endpoint.

record_schema, string nullable

What the records look like, for example grid_fee_gas, grid_fee_power, district_heat_prices, default_supply_prices, eu_ets_installation_emissions. An unknown name answers 422.

params, object

Connector parameters, for example url for document.extract.

sync_hours, integer

Hours between scheduled reads.

active, boolean

Response

The stored dataset.

object required
data, DataLibraryDatasetRow required

A stored dataset definition with its sync state.

Changes