Create Empty Dataset Endpoint
const url = 'https://example.com/datasets/create/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"columns":[{"name":"example","type":"text"}],"title":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/datasets/create/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "columns": [ { "name": "example", "type": "text" } ], "title": "example" }'Create an empty dataset with user-defined columns.
Creates a PostGIS table in the data schema and a catalog record.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
object
Responses
Section titled “ Responses ”Successful Response
object
Minimal reference to a collection a dataset belongs to.
object
Describes a single column in a dataset’s attribute table.
Monotonic version counter
True when the underlying column is generic GEOMETRY (created sketch datasets): the dataset accepts ANY geometry subtype on write regardless of the display geometry_type above. Computed on the detail endpoint only (fix #430 codex r18); list endpoints always report false.
Automated quality assessment results.
object
object
Parent catalog record UUID
Lifecycle status: draft, ready, published
Record type: ‘vector_dataset’ (spatial features), ‘raster_dataset’ (single COG), ‘vrt_dataset’ (VRT mosaic), ‘table’ (non-spatial tabular), ‘map’ (saved map), ‘service’ (catalogued remote service), ‘collection’ (flat dataset group).
Internal PostGIS table name
Access level: private, restricted, internal, public
Example
{ "current_version": 1, "has_generic_geometry": false, "raster": { "bands": [] }, "record_status": "draft", "record_type": "vector_dataset"}Bad request — invalid payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks write access
Not found
Conflict — resource state prevents the operation
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request