Register Table
POST
/ingest/register/
const url = 'https://example.com/ingest/register/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"summary":"example","table_name":"example","title":"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/ingest/register/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "summary": "example", "table_name": "example", "title": "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
table_name
required
Table Name
Source PostgreSQL table that was registered.
string
title
required
Title
Title of the registered dataset.
string
Example generated
{ "dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "table_name": "example", "title": "example"}Bad request — invalid payload
Media type application/problem+json
Unauthorized — missing or invalid credentials
Media type application/problem+json
Forbidden — caller lacks write access
Media type application/problem+json
Not found
Media type application/problem+json
Conflict — resource state prevents the operation
Media type application/problem+json
Validation error
Media type application/problem+json
Too many requests — retry after the advertised interval
Media type application/problem+json
Headers
Section titled “Headers ” Retry-After
integer
Seconds until the request may be retried
Internal server error
Media type application/problem+json
Service unavailable — the database could not serve the request
Media type application/problem+json