Collection layers API#

Served by: GeoNeMo Toolkit API. Schemas are on the schemas page.

Method

Path

Summary

POST

/v1/catalog/collections

Create collection

GET

/v1/catalog/collections/{collection_id}/layers

List layers

POST

/v1/catalog/collections/{collection_id}/layers

Register layer

GET

/v1/catalog/collections/{collection_id}/layers/{layer_id}

Get layer

GET

/v1/catalog/collections/{collection_id}/layers/{layer_id}/changes

List layer changes

GET

/v1/catalog/collections/{collection_id}/layers/{layer_id}/records

List layer records

POST

/v1/catalog/collections/{collection_id}/layers/{layer_id}/records

Write layer records

GET

/v1/catalog/collections/{collection_id}/layers/{layer_id}/records/{record_id}

Get layer record

GET

/v1/catalog/collections/{collection_id}/layers/{layer_id}/records/{record_id}/assets/{asset_id}

Download layer asset

POST

/v1/catalog/collections/{collection_id}/layers/{layer_id}/records/{record_id}/assets/{asset_id}

Upload layer asset

POST

/v1/catalog/collections/{collection_id}/layers/{layer_id}/records/{record_id}/assets/{asset_id}/window

Read raster window

GET

/v1/collection-descriptors

List collection descriptors

POST

/v1/derived-outputs

Register derived output

GET

/v1/derived-outputs/{output_id}

Get derived output

POST

/v1/layer-corpus-bindings

Bind layer snapshot to corpus

GET

/v1/layer-corpus-bindings/{corpus_id}

Get layer corpus binding

GET

/v1/layer-corpus-bindings/{corpus_id}/coverage

Get layer corpus coverage

POST

/v1/layer-snapshots

Publish layer snapshot

GET

/v1/layer-snapshots/{snapshot_id}

Get layer snapshot

POST

/v1/ontology/search

Search by ontology concept

GET

/v1/ontology/versions

List ontology versions

POST

/v1/ontology/versions

Propose ontology version

GET

/v1/ontology/versions/{version_id}

Get ontology version

POST

/v1/ontology/versions/{version_id}/publish

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_post

  • Access: 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

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CollectionCreate

yes

Responses

Status

Meaning

Body

201

Created

CollectionView

422

Validation Error

HTTPValidationError

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_get

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

after

query

string

limit

query

integer

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

LayerPage

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

LayerRegistration

yes

Responses

Status

Meaning

Body

201

Created

CollectionLayer

422

Validation Error

HTTPValidationError

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__get

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

layer_id

path

string

yes

The collection layer ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

CollectionLayer

422

Validation Error

HTTPValidationError

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_get

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

layer_id

path

string

yes

The collection layer ID.

after

query

integer

limit

query

integer

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

LayerChanges

422

Validation Error

HTTPValidationError

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_get

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

layer_id

path

string

yes

The collection layer ID.

after

query

string

limit

query

integer

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

LayerRecordPage

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

layer_id

path

string

yes

The collection layer ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

LayerRecordBatch

yes

Responses

Status

Meaning

Body

200

OK

LayerWriteReceipt

422

Validation Error

HTTPValidationError

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__get

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

layer_id

path

string

yes

The collection layer ID.

record_id

path

string

yes

The catalog record ID within the collection.

revision_id

query

string or null

layer_version

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

LayerRecord

422

Validation Error

HTTPValidationError

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__get

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

layer_id

path

string

yes

The collection layer ID.

record_id

path

string

yes

The catalog record ID within the collection.

asset_id

path

string

yes

The asset ID within the record.

record_revision

query

string or null

layer_version

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

string (binary)

422

Validation Error

HTTPValidationError

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__post

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

layer_id

path

string

yes

The collection layer ID.

record_id

path

string

yes

The catalog record ID within the collection.

asset_id

path

string

yes

The asset ID within the record.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

LayerAssetUpload

yes

Responses

Status

Meaning

Body

200

OK

LayerAssetReceipt

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

collection_id

path

string

yes

The catalog collection name.

layer_id

path

string

yes

The collection layer ID.

record_id

path

string

yes

The catalog record ID within the collection.

asset_id

path

string

yes

The asset ID within the record.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

LayerRasterWindow

yes

Responses

Status

Meaning

Body

200

OK

LayerRasterResult

422

Validation Error

HTTPValidationError

GET /v1/collection-descriptors#

List collection descriptors

Lists collection descriptors, paged by after and limit (at most 100).

  • Operation: collections_v1_collection_descriptors_get

  • Access: 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

after

query

string

limit

query

integer

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

CollectionPage

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

DerivedOutputRegistration

yes

Responses

Status

Meaning

Body

201

Created

DerivedOutputView

422

Validation Error

HTTPValidationError

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__get

  • Access: 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

output_id

path

string

yes

The derived output ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

DerivedOutputView

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

LayerCorpusBinding

yes

Responses

Status

Meaning

Body

200

OK

LayerBindingView

422

Validation Error

HTTPValidationError

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__get

  • Access: 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

corpus_id

path

string

yes

The retrieval corpus ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

LayerBindingView

422

Validation Error

HTTPValidationError

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_get

  • Access: 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

corpus_id

path

string

yes

The retrieval corpus ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

LayerSnapshotRequest

yes

Responses

Status

Meaning

Body

201

Created

LayerSnapshotView

422

Validation Error

HTTPValidationError

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__get

  • Access: 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

snapshot_id

path

string

yes

The layer snapshot ID.

require_current

query

boolean

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

LayerSnapshotView

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

SemanticQuery

yes

Responses

Status

Meaning

Body

200

OK

SemanticResult

422

Validation Error

HTTPValidationError

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_get

  • Access: 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

after

query

string

limit

query

integer

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

OntologyPage

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

OntologyDocument

yes

Responses

Status

Meaning

Body

201

Created

OntologyView

422

Validation Error

HTTPValidationError

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__get

  • Access: 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

version_id

path

string

yes

The ontology version ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

OntologyView

422

Validation Error

HTTPValidationError

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_post

  • Access: 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

version_id

path

string

yes

The ontology version ID.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

OntologyView

422

Validation Error

HTTPValidationError