CKAN icon

CKAN

Interact with the CKAN API

Datastore Create

AI-generated

Summary

Create a CKAN DataStore table for the specified resource, optionally defining its columns and inserting initial records. If the resource already has a DataStore table, the operation replaces it.

Inputs

  • CKAN URL (required) — Base URL of the CKAN instance.
  • Resource Id (required) — Unique ID of the resource that will own the DataStore table.
  • Fields — Optional JSON array of column definitions. If omitted, CKAN infers column types from the first batch of records.
  • Records — Optional JSON array of objects to insert as initial rows.
  • Force — Defaults to false. Set to true to allow creating a DataStore table on an active, non-draft resource.

Output shape

One item per input item, each containing a CKAN response in json.data with json.success set to true.

Requires CKAN API credentials because this is a POST operation. With Continue On Fail enabled, failed input items instead return a json.error message.

Links

Discussion