Register Table
POST
/ingest/register/
const url = 'https://example.com/api/ingest/register/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"table_name":"example","title":"example","summary":"example","visibility":"private"}'};
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/api/ingest/register/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "table_name": "example", "title": "example", "summary": "example", "visibility": "private" }'Register an existing PostGIS table as a dataset.
Verifies the table exists, extracts metadata, and creates a catalog entry.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
RegisterRequest
object
Responses
Section titled “ Responses ”Successful Response
Media type application/json
TableRegisterResponse
object
dataset_id
required
Dataset Id
Identifier of the newly registered dataset.
string format: uuid
title
required
Title
Title of the registered dataset.
string
table_name
required
Table Name
Source PostgreSQL table that was registered.
string
Example generated
{ "dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example", "table_name": "example"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}