Collections operations

Group items into collections.

Each operation below is reachable at POST /v1/op/{operation_id} or the resource path POST /v1/{resource}/{action}, with a Bearer token (a gpra_ API key or a session token). Back to the Operations Reference index.

collections.create

Create an organizing collection within a project (editor/admin required).

Scopecollections:write
Side-effectcompute
HTTPPOST /v1/op/collections.create · POST /v1/collections/create
Python / TypeScriptclient.collections.create(…)
CLIgeopera collections create …

RequestCollectionCreateInput

FieldTypeRequiredDescription
namestringyes
descriptionstring
colorstring
show_on_mapboolean
layer_orderinteger
project_idstringyes

ResponseCollectionResponse.

collections.delete

Soft-delete a collection, unlinking its items (project admin required).

Scopecollections:write
Side-effectdestructive
HTTPPOST /v1/op/collections.delete · POST /v1/collections/delete
Python / TypeScriptclient.collections.delete(…)
CLIgeopera collections delete …

RequestCollectionDeleteInput

FieldTypeRequiredDescription
project_idstringyes
collection_idstringyes

ResponseCollectionDeleteOutput.

collections.get

Get a collection by id within a project.

Scopecollections:read
Side-effectread
HTTPPOST /v1/op/collections.get · POST /v1/collections/get
Python / TypeScriptclient.collections.get(…)
CLIgeopera collections get …

RequestCollectionsGetInput

FieldTypeRequiredDescription
project_idstringyes
collection_idstringyes

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

collections.list

List a project’s collections (with item counts).

Scopecollections:read
Side-effectread
HTTPPOST /v1/op/collections.list · POST /v1/collections/list
Python / TypeScriptclient.collections.list(…)
CLIgeopera collections list …

Requestsrc__operations__collections__reads__CollectionsListInput

FieldTypeRequiredDescription
project_idstringyes

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

collections.update

Update a collection’s metadata (editor/admin required).

Scopecollections:write
Side-effectcompute
HTTPPOST /v1/op/collections.update · POST /v1/collections/update
Python / TypeScriptclient.collections.update(…)
CLIgeopera collections update …

RequestCollectionUpdateInput

FieldTypeRequiredDescription
namestring
descriptionstring
colorstring
show_on_mapboolean
layer_orderinteger
project_idstringyes
collection_idstringyes

ResponseCollectionResponse.