Skip to content
getgeolens.com

Transfer a map to another owner

PATCH
/maps/{map_id}
curl --request PATCH \
--url https://example.com/api/maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "owner_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "expected_updated_at": "2026-04-15T12:00:00Z" }'

Transfer a map to another owner. Admin only.

map_id
required
Map Id
string format: uuid
Media type application/json
MapPatch

Partial map update. PUT /maps/{map_id} edits the map’s content.

object
owner_id
required
Owner Id

Admin only: transfer the map to this active user.

string format: uuid
expected_updated_at
Any of:
string format: date-time

Example generated

{
"owner_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"expected_updated_at": "2026-04-15T12:00:00Z"
}

Successful Response

Media type application/json
MapResponse
object
id
required
Id
string format: uuid
name
required
Name
string
description
required
Any of:
string
notes
Any of:
string
center_lng
required
Any of:
number
center_lat
required
Any of:
number
zoom
required
Any of:
number
bearing
required
Bearing
number
pitch
required
Pitch
number
basemap_style
required
Basemap Style
string
show_basemap_labels
required
Show Basemap Labels
boolean
show_attribute_table
Show Attribute Table

Whether viewers offer each layer’s attribute table. Embed tokens for the map may read a layer’s rows only while it is on; the columns they may read come from each dataset’s tile column allowlist.

boolean
default: true
basemap_config
Any of:
BasemapConfig
object
label_mode
BasemapLabelMode

Basemap label prominence.

string
default: full
Allowed values: full subtle hidden
road_visibility
BasemapSublayerVisibility

Road and transit sublayer visibility where supported.

string
default: full
Allowed values: full subtle hidden
boundary_visibility
BasemapSublayerVisibility

Administrative boundary sublayer visibility where supported.

string
default: full
Allowed values: full subtle hidden
building_visibility
Building Visibility

Whether supported building/3D building basemap layers are shown.

boolean
default: true
land_water_tone
BasemapLandWaterTone

Land and water color treatment where supported.

string
default: default
Allowed values: default muted contrast monochrome
relief_contrast
Any of:
BasemapReliefContrast
string
Allowed values: soft standard strong
opacity
Opacity

Master basemap opacity 0.0-1.0

number
default: 1 <= 1
background_color
Any of:
string
sublayer_overrides
Any of:
object
key
additional properties
SublayerOverride

Per-sublayer style override for a single basemap sublayer.

All fields are nullable — a None value means “use the basemap default”. Only #RRGGBB hex strings are accepted for color fields; None means the basemap default color is preserved. Numeric ranges are clamped at validation time (Pydantic ge/le constraints).

The key set of BasemapConfig.sublayer_overrides is treated as opaque (forward-compatible with future sublayer IDs).

Security: extra=“forbid” locks the scope guardrail: unknown style axes such as dash patterns, line caps, halo blur, and text-font are rejected at validation time.

object
stroke_color
Any of:
string
stroke_width
Any of:
number
<= 20
casing_color
Any of:
string
casing_width
Any of:
number
<= 20
min_zoom
Any of:
number
<= 24
max_zoom
Any of:
number
<= 24
opacity
Any of:
number
<= 1
basemap_position
Any of:
BasemapPosition

Whether the basemap renders below (‘bottom’, default) or above (‘top’) data layers.

string
Allowed values: bottom top
projection
Any of:
BasemapProjection

Map projection. ‘mercator’ (default) or experimental ‘globe’.

string
Allowed values: mercator globe
terrain_config
Any of:
TerrainConfig
object
enabled
Enabled
boolean
source_dataset_id
Any of:
string format: uuid
exaggeration
Exaggeration
number
default: 1 <= 3
dashboard_config
Any of:
DashboardConfig
object
version
required
Version
integer
panel
Panel

Where the panel sits beside the map: right or bottom. On narrow screens it is always below the map.

string
default: right
Allowed values: right bottom
map_hidden
Map Hidden

Show the widgets across the full page and don’t mount the map. Widgets scoped to the map view fall back to the whole layer.

boolean
theme
Theme

The page’s colours: light, dark, or follow the reader’s setting.

string
default: follow
Allowed values: follow light dark
widgets
required
Widgets

The widgets on layers this response shows, in panel order.

Array
One of: discriminator: type
MarkdownWidget
object
id
required
Id

Made by the client and stable across saves.

string format: uuid
title
Any of:
string
<= 120 characters
type
required
Type
string
Allowed value: markdown
v
required
V
integer
Allowed value: 1
config
required
MarkdownConfig
object
text
required
Text
string
<= 20000 characters
visibility
required
MapVisibility

Who may read a map. A response names restricted only to a client that sends X-GeoLens-Map-Visibility: restricted; any other client reads a restricted map as private.

string
Allowed values: private internal public restricted
thumbnail_url
Any of:
string
og_image_url
Any of:
string
forked_from_id
Any of:
string format: uuid
forked_from_name
Any of:
string
created_by
required
Any of:
string format: uuid
created_by_username
Any of:
string
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
layers
required
Layers
Array<object>
MapLayerResponse
object
id
required
Id
string format: uuid
dataset_id
required
Dataset Id
string format: uuid
dataset_name
required
Dataset Name
string
dataset_geometry_type
required
Any of:
string
dataset_table_name
required
Dataset Table Name
string
dataset_extent_bbox
required
Any of:
Array<number>
dataset_column_info
Any of:
Array<object>
object
key
additional properties
any
dataset_tile_columns
Any of:
Array<string>
dataset_feature_count
Any of:
integer
dataset_sample_values
Any of:
object
key
additional properties
any
display_name
Any of:
string
sort_order
required
Sort Order
integer
visible
required
Visible
boolean
opacity
required
Opacity
number
paint
required
Paint
object
key
additional properties
any
layout
required
Layout
object
key
additional properties
any
layer_type
Layer Type
string
default: vector_geolens
dataset_record_type
Any of:
string
filter
Any of:
Array
label_config
Any of:
object
key
additional properties
any
popup_config
Any of:
PopupConfig

Per-layer popup configuration: enable/disable + custom title template

  • ordered visible-fields allowlist. Persisted as JSONB on map_layers.
object
enabled
required
Enabled
boolean
expression
Any of:
string
<= 500 characters
visible_fields
Any of:
Array<string>
<= 100 items
style_config
Any of:
object
key
additional properties
any
show_in_legend
Show In Legend
boolean
default: true
is_3d
Any of:
boolean
is_dem
Any of:
boolean
dem_vertical_units
Any of:
string
band_count
Any of:
integer
tile_version
Any of:
integer
publication_version
Any of:
integer
dataset_visibility
Any of:
string
dataset_status
Any of:
string
dataset_attribution
Any of:
string
layer_count
required
Layer Count
integer
plugins
Any of:
Array<string>
legend_title
Any of:
string
groups
Any of:
Array<object>
GroupRef
object
id
required
Id

Unique group identifier.

string format: uuid
name
required
Name

Group name.

string
reader_theme
Any of:
ReaderTheme

An accent colour, a logo and a font family for reader-facing pages.

The frontend applies these as theme tokens only. A font is named, never fetched: the operator ships the font file, since the CSP allows no remote fonts.

object
accent
Any of:
string
/^#[0-9a-fA-F]{6}$/
logo_url
Any of:
string
<= 2000 characters
font_family
Any of:
string
<= 100 characters /^ ?(?:"[A-Za-z0-9 -]+"|'[A-Za-z0-9 -]+'|[A-Za-z0-9-]+(?: [A-Za-z0-9-]+)*) ?(?:, ?(?:"[A-Za-z0-9 -]+"|'[A-Za-z0-9 -]+'|[A-Za-z0-9-]+(?: [A-Za-z0-9-]+)*) ?)*$/

Example

{
"show_attribute_table": true,
"basemap_config": {
"label_mode": "full",
"road_visibility": "full",
"boundary_visibility": "full",
"building_visibility": true,
"land_water_tone": "default",
"relief_contrast": "soft",
"opacity": 1,
"basemap_position": "bottom",
"projection": "mercator"
},
"terrain_config": {
"enabled": false,
"exaggeration": 1
},
"dashboard_config": {
"panel": "right",
"map_hidden": false,
"theme": "follow",
"widgets": [
{
"type": "markdown",
"v": 1
}
]
},
"visibility": "private",
"layers": [
{
"layer_type": "vector_geolens",
"show_in_legend": true
}
]
}

Bad request — invalid payload

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Unauthorized — missing or invalid credentials

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Forbidden — caller lacks write access

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Not found

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Conflict — resource state prevents the operation

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Validation error

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Too many requests — retry after the advertised interval

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}
Retry-After
integer

Seconds until the request may be retried

Internal server error

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Service unavailable — the database could not serve the request

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string

Example

{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}