Transfer a map to another owner
const url = 'https://example.com/api/maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"owner_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","expected_updated_at":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Bodyrequired
Section titled “ Request Bodyrequired ”Partial map update. PUT /maps/{map_id} edits the map’s content.
object
Example generated
{ "owner_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "expected_updated_at": "2026-04-15T12:00:00Z"}Responses
Section titled “ Responses ”Successful Response
object
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.
object
Basemap label prominence.
Road and transit sublayer visibility where supported.
Administrative boundary sublayer visibility where supported.
Whether supported building/3D building basemap layers are shown.
Land and water color treatment where supported.
Master basemap opacity 0.0-1.0
object
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
Whether the basemap renders below (‘bottom’, default) or above (‘top’) data layers.
Map projection. ‘mercator’ (default) or experimental ‘globe’.
object
Where the panel sits beside the map: right or bottom. On narrow screens it is always below the map.
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.
The page’s colours: light, dark, or follow the reader’s setting.
The widgets on layers this response shows, in panel order.
object
Made by the client and stable across saves.
A layer of the host’s map.
Summarize the whole layer, or only what the map view shows.
2 when the config sets any reference option, else 1. A 1 that sets one is refused.
object
Made by the client and stable across saves.
A layer of the host’s map.
Summarize the whole layer, or only what the map view shows.
object
category: one bar per value of column. by_feature: one bar per feature, labelled by label_column, sized by value_column. by_fields: one bar per name in fields, each showing stat of that field. date: column grouped by date_bucket.
by_feature: bar order by value.
by_fields: the numeric fields to chart, one bar each.
category: colour bars as the layer does when column is its style column.
object
Made by the client and stable across saves.
A layer of the host’s map.
Summarize the whole layer, or only what the map view shows.
object
The column whose values become slices.
Slices beyond this many are merged into Other.
Colour slices as the layer does when column is its style column.
object
Made by the client and stable across saves.
A layer of the host’s map.
Summarize the whole layer, or only what the map view shows.
object
Made by the client and stable across saves.
A layer of the host’s map.
Summarize the whole layer, or only what the map view shows.
object
Made by the client and stable across saves.
A layer of the host’s map.
Summarize the whole layer, or only what the map view shows.
object
object
Made by the client and stable across saves.
A layer of the host’s map.
Summarize the whole layer, or only what the map view shows.
object
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.
object
object
object
object
Per-layer popup configuration: enable/disable + custom title template
- ordered visible-fields allowlist. Persisted as JSONB on map_layers.
object
object
Unique group identifier.
Group name.
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.
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
Unauthorized — missing or invalid credentials
Forbidden — caller lacks write access
Not found
Conflict — resource state prevents the operation
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “ Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request