Collection layers API#
Served by: GeoNeMo Toolkit API. Schemas are on the schemas page.
Method |
Path |
Summary |
|---|---|---|
|
|
Create collection |
|
|
List layers |
|
|
Register layer |
|
|
Get layer |
|
|
List layer changes |
|
|
List layer records |
|
|
Write layer records |
|
|
Get layer record |
|
|
Download layer asset |
|
|
Upload layer asset |
|
|
Read raster window |
|
|
List collection descriptors |
|
|
Register derived output |
|
|
Get derived output |
|
|
Bind layer snapshot to corpus |
|
|
Get layer corpus binding |
|
|
Get layer corpus coverage |
|
|
Publish layer snapshot |
|
|
Get layer snapshot |
|
|
Search by ontology concept |
|
|
List ontology versions |
|
|
Propose ontology version |
|
|
Get ontology version |
|
|
Publish ontology version |
POST /v1/catalog/collections#
Create collection
Creates a collection owned by the caller. Repeating an identical request returns the existing collection; a different definition for the same ID returns 409. Reserved catalog collections also need collections:manage, and workload credentials cannot create collections.
Operation:
create_collection_v1_catalog_collections_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/catalog/collections" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Created |
|
|
Validation Error |
GET /v1/catalog/collections/{collection_id}/layers#
List layers
Lists a collection’s registered layers, paged by after and limit (at most 100). next_cursor is set when more remain.
Operation:
layers_v1_catalog_collections__collection_id__layers_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
query |
string |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/catalog/collections/{collection_id}/layers#
Register layer
Registers a layer descriptor in a collection. The descriptor must name the collection in the path (422 otherwise). Only the collection’s owner may change its layers.
Operation:
register_layer_v1_catalog_collections__collection_id__layers_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Created |
|
|
Validation Error |
GET /v1/catalog/collections/{collection_id}/layers/{layer_id}#
Get layer
Returns one layer’s descriptor. Returns 404 when the collection or layer does not exist.
Operation:
layer_v1_catalog_collections__collection_id__layers__layer_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers/<layer_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The collection layer ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/catalog/collections/{collection_id}/layers/{layer_id}/changes#
List layer changes
Lists a layer’s changes after the watermark after, up to limit (at most 100), so a client can follow a layer incrementally.
Operation:
changes_v1_catalog_collections__collection_id__layers__layer_id__changes_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers/<layer_id>/changes" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The collection layer ID. |
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/catalog/collections/{collection_id}/layers/{layer_id}/records#
List layer records
Lists a layer’s current records, paged by after and limit (at most 100).
Operation:
records_v1_catalog_collections__collection_id__layers__layer_id__records_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers/<layer_id>/records" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The collection layer ID. |
|
query |
string |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/catalog/collections/{collection_id}/layers/{layer_id}/records#
Write layer records
Writes a batch of records into a layer whose authority is the collection import. Unchanged records are skipped. expected_watermark makes the write fail with 409 when the layer changed in the meantime. Returns the new watermark and each record’s revision.
Operation:
ingest_records_v1_catalog_collections__collection_id__layers__layer_id__records_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers/<layer_id>/records" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The collection layer ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/catalog/collections/{collection_id}/layers/{layer_id}/records/{record_id}#
Get layer record
Returns one layer record, by default its current revision. revision_id or layer_version selects an earlier one.
Operation:
record_v1_catalog_collections__collection_id__layers__layer_id__records__record_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers/<layer_id>/records/<record_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The collection layer ID. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
string or null |
||
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/catalog/collections/{collection_id}/layers/{layer_id}/records/{record_id}/assets/{asset_id}#
Download layer asset
Returns an asset’s bytes as an attachment, with the content digest as ETag and the record revision in X-GeoNemo-Record-Revision. record_revision and layer_version select an earlier version. Returns 404 when the content has not been imported.
Operation:
read_asset_v1_catalog_collections__collection_id__layers__layer_id__records__record_id__assets__asset_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers/<layer_id>/records/<record_id>/assets/<asset_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The collection layer ID. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
path |
string |
yes |
The asset ID within the record. |
|
query |
string or null |
||
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
string (binary) |
|
Validation Error |
POST /v1/catalog/collections/{collection_id}/layers/{layer_id}/records/{record_id}/assets/{asset_id}#
Upload layer asset
Stores a layer record’s asset sent as base64 content. The content must match its declared byte length and checksum (422 otherwise).
Operation:
upload_asset_v1_catalog_collections__collection_id__layers__layer_id__records__record_id__assets__asset_id__postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers/<layer_id>/records/<record_id>/assets/<asset_id>" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The collection layer ID. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
path |
string |
yes |
The asset ID within the record. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/catalog/collections/{collection_id}/layers/{layer_id}/records/{record_id}/assets/{asset_id}/window#
Read raster window
Reads a pixel window of at most 512 by 512 pixels, with chosen bands, from a raster asset. Read-only despite using POST.
Operation:
raster_window_v1_catalog_collections__collection_id__layers__layer_id__records__record_id__assets__asset_id__window_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/catalog/collections/<collection_id>/layers/<layer_id>/records/<record_id>/assets/<asset_id>/window" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The collection layer ID. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
path |
string |
yes |
The asset ID within the record. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/collection-descriptors#
List collection descriptors
Lists collection descriptors, paged by after and limit (at most 100).
Operation:
collections_v1_collection_descriptors_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/collection-descriptors" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
string |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/derived-outputs#
Register derived output
Declares that a layer record was derived from exact source records. The output digest must match the record’s content, dependency cycles are rejected, and a source may carry at most 64 declarations.
Operation:
register_derived_output_v1_derived_outputs_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/derived-outputs" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Created |
|
|
Validation Error |
GET /v1/derived-outputs/{output_id}#
Get derived output
Returns a derived-output declaration with its current state, which becomes stale when a source changed or disappeared.
Operation:
derived_output_v1_derived_outputs__output_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/derived-outputs/<output_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The derived output ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/layer-corpus-bindings#
Bind layer snapshot to corpus
Binds a layer snapshot to a retrieval corpus so its records can be searched. Returns 503 when the retrieval profile is not enabled and 422 when its embedding space is incompatible.
Operation:
bind_layer_corpus_v1_layer_corpus_bindings_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/layer-corpus-bindings" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/layer-corpus-bindings/{corpus_id}#
Get layer corpus binding
Returns the layer binding of a retrieval corpus. Returns 404 when the corpus has none.
Operation:
layer_corpus_binding_v1_layer_corpus_bindings__corpus_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/layer-corpus-bindings/<corpus_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/layer-corpus-bindings/{corpus_id}/coverage#
Get layer corpus coverage
Reports how much of the bound layer source the corpus covers: source and searchable-vector counts, sources missing a space, whether the source has moved ahead (source_lag) and the corpus’s recent jobs.
Operation:
layer_corpus_coverage_v1_layer_corpus_bindings__corpus_id__coverage_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/layer-corpus-bindings/<corpus_id>/coverage" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/layer-snapshots#
Publish layer snapshot
Pins the selected layers at their current schema versions and watermarks as an immutable snapshot. Returns 503 when a source cannot satisfy require_retained_history.
Operation:
publish_layer_snapshot_v1_layer_snapshots_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/layer-snapshots" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Created |
|
|
Validation Error |
GET /v1/layer-snapshots/{snapshot_id}#
Get layer snapshot
Returns a snapshot. With require_current=true it fails with 409 when a pinned layer schema has since been superseded. Returns 422 when the snapshot fails its integrity check.
Operation:
get_layer_snapshot_v1_layer_snapshots__snapshot_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/layer-snapshots/<snapshot_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The layer snapshot ID. |
|
query |
boolean |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/ontology/search#
Search by ontology concept
Answers a concept query against a published ontology version. Returns evidence records, the source pins behind them, and whether the scan was partial or truncated. Read-only despite using POST.
Operation:
semantic_search_v1_ontology_search_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/ontology/search" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/ontology/versions#
List ontology versions
Lists published ontology versions, paged by after and limit (at most 100, default 20).
Operation:
ontology_versions_v1_ontology_versions_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/ontology/versions" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
string |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/ontology/versions#
Propose ontology version
Stores a proposed ontology version after validating its mappings against registered layers. Proposing an existing version ID returns the stored version unchanged.
Operation:
propose_ontology_v1_ontology_versions_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/ontology/versions" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Created |
|
|
Validation Error |
GET /v1/ontology/versions/{version_id}#
Get ontology version
Returns a published ontology version. Returns 404 for an unknown or unpublished version.
Operation:
ontology_v1_ontology_versions__version_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/ontology/versions/<version_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The ontology version ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/ontology/versions/{version_id}/publish#
Publish ontology version
Revalidates a proposed ontology version and marks it published, recording the reviewer. Requires the ontology:publish scope.
Operation:
publish_ontology_v1_ontology_versions__version_id__publish_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/ontology/versions/<version_id>/publish" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The ontology version ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |