API and agentsAPI reference
Config
object
basemapUrlstringThe deployment default style (override or dark).
basemapOverrideUrlstringor nullThe deployment basemap override, when set โ it pins Auto maps in both themes.
basemapsarrayThe selectable basemap styles.
(each item)objectkeystringOne of
dark,light,streets,satellitelabelstringurlstringkindstringVector styles carry the toggleable content groups (basemapLayers); imagery is a photo โ groups don't apply.
One of
vector,imageryattributionBasemapAttribution
basemapStylesarrayThe styles an admin added to the basemap library and offers, oldest first, chosen by their id; hidden ones are left out.
(each item)objectA style an admin added to the library by its address, offered where a basemap is chosen. A map that takes it keeps its own copy of the name, the address and the credit.
idstringrequiredThe style's identity in the library.
namestringrequiredmin length1max length60The name a person choosing a basemap sees.
urlstringrequiredThe style's address, public to whoever draws a map on it, as a map's own style address is.
attributionBasemapAttributionrequired
No other keys.
singleMapStylesbooleanWhether a map may take a style address the basemap library does not offer (the basemaps.singleMapStyles setting). Off, such an address is refused with basemap_not_offered when a map write or an undo or redo would newly put it on a map; a map that holds one keeps it.
palettesarrayThe palette catalogue for data-driven fills, grouped for browsing and flagged colorblind-safe where the upstream source designates it.
(each item)objectnamestringlabelstringkindstringOne of
sequential,categoricalgroupstringBrowsing group; diverging palettes classify as kind "sequential" (same methods, steps, reverse).
One of
sequential,diverging,qualitativecolorblindSafebooleancolorsarray of stringlevelsobjectPublished per-class-count colors (ColorBrewer sets); a k-class fill uses these exact colors when present.
renderCapFeaturesintegerpreviewRowsintegergeocoderConfiguredbooleanWhether a place-search provider endpoint is configured. The endpoint URL itself never leaves the server.
defaultsobjectWhat new things start with on this instance, keyed and valued as PATCH /api/instance/settings takes them: every key with its effective value. A new map takes the newMap values and a new layer created without a style the newLayer values; the workflow canvas, the SQL console and a fresh image export card take theirs as they open. Admins change them, and nothing that already exists changes with them. A basemap the instance no longer offers reads as auto.
newMap.basemapstringrequiredBasemap. The basemap a new map starts on. Auto follows the theme; a basemap the instance no longer offers starts on Auto.
One of
auto,dark,light,streets,satellitenewMap.latitudenumberrequiredminimum-85maximum85Starting latitude. The latitude a new map opens at.
newMap.longitudenumberrequiredminimum-180maximum180Starting longitude. The longitude a new map opens at.
newMap.zoomnumberrequiredminimum0maximum22Starting zoom. The zoom a new map opens at.
newMap.legendCornerstringrequiredLegend corner. Where a new map's legend sits.
One of
top-left,top-right,bottom-left,bottom-rightnewLayer.colorCyclestringrequiredColor cycle. The palette whose colors new layers take in turn, drawn sketches included.
One of
uber_viz_qualitative,bold,tab10,paired,dark2,set3newLayer.pointOpacityintegerrequiredminimum10maximum100Point opacity (%). How opaque a new points layer is drawn, unless it is created with a style.
newLayer.lineOpacityintegerrequiredminimum10maximum100Line opacity (%). How opaque a new lines layer is drawn, unless it is created with a style.
newLayer.areaOpacityintegerrequiredminimum10maximum100Area opacity (%). How opaque a new areas layer is drawn, unless it is created with a style.
newLayer.lineWidthnumberrequiredminimum0.5maximum50Line width (px). How wide a new lines layer is drawn, unless it is created with a style.
newLayer.pointRadiusnumberrequiredminimum0.5maximum100Point radius (px). How large a new layer's points are drawn, unless it is created with a style.
canvas.opensstringrequiredCanvas opens. Whether a workflow canvas opens full screen or framed.
One of
full,framedcanvas.minimapstringrequiredCanvas minimap. When a workflow canvas shows its minimap until the person chooses: auto shows it from six nodes.
One of
auto,always,nevercanvas.resultsBandstringrequiredCanvas results band. Whether a workflow canvas opens with its results band closed or open until the person chooses.
One of
closed,opensqlConsole.textSizestringrequiredSQL text size (px). The text size the SQL console's editor opens at.
One of
11,12,13,14,16sqlConsole.lineWrapbooleanrequiredSQL line wrap. Whether the SQL console's editor wraps long lines.
imageExport.widthstringrequiredImage starting width (px). The width a fresh image export card opens at.
One of
1280,1920,2560imageExport.shapestringrequiredImage starting shape. The shape a fresh image export card opens at.
One of
16:9,4:3,1:1
No other keys.
templatesobjectcataloguebooleanrequiredWhether the template catalogue is in use (the templates.catalogue setting). Off, the server reads it for nothing; shipped and downloaded templates still open and copy.
No other keys.
rulesobjectThe rules every signed-in account follows, keyed and valued as PATCH /api/instance/settings takes them. Admins change them.
tokens.createstringrequiredWhether every account or only admins may create API tokens. Tokens made earlier keep working.
One of
everyone,adminstokens.expirystringrequiredThe lifetime a new API token takes, from its creation. Tokens made earlier keep their own.
One of
never,30d,90d,1ypublishing.publishstringrequiredWhether every account, only admins or no one may publish a map or change a publication. Published maps stay public and can be unpublished.
One of
everyone,admins,nonepublishing.embeddingstringrequiredWhich other sites may show a published page in a frame: any site, only the listed sites (at least one), or none.
One of
any,listed,offconnections.createstringrequiredWhether every account or only admins may add a database connection. Connections made earlier keep working.
One of
everyone,adminsimports.linksstringrequiredWhether every account or only admins may import from web addresses and cloud storage. Link datasets keep refreshing.
One of
everyone,admins
No other keys.
passwordMinintegerminimum8maximum64The instance's shortest password: the fewest characters a password set from now may have, from 8 to 64. Admins change it; passwords set earlier keep signing in.
7439201b