{"openapi":"3.1.0","info":{"title":"Geografica API","description":"## Introduction\n\nThe Geografica API provides programmatic access to European administrative\ngeography and regional statistics. It exposes world regions, NUTS regions,\nready-to-render vector tiles and datasets of\nsocio-economic values, so you can build maps, dashboards and data pipelines\non top of a consistent, up-to-date geospatial catalog.\n\nWithin this documentation, you'll find everything you need to get started, including:\n\n* Authentication for secure access\n* Detailed descriptions of all available API endpoints\n* Example requests and responses to illustrate functionality\n* Error codes and troubleshooting guidance\n\n### Resources\n\n* **NUTS regions** — the Eurostat hierarchy (levels 0–3), queryable by country,\n  level and parent code.\n* **Vector tiles** — world region boundaries served as Mapbox Vector Tiles (MVT),\n  generated on demand. Features carry `code`, `name` and `level` only;\n  fetch the values separately and join them client-side.\n* **Datasets** — upload and manage source datasets that feed the catalog.\n\n### Authentication\n\nTo access the Geografica API, you'll need to authenticate your requests using an API key.\n\nThe API key should be included in the `X-Geografica-Api-Key` header of your requests.\n\nEndpoints fall into two groups, and they differ in what else they need:\n\n* **Catalog endpoints.** NUTS regions, statistics, world regions and\n  vector tiles read the shared geographic catalog. They do not act on behalf of\n  any organization, so the organization header below does not apply to them.\n* **Organization-scoped endpoints.** Every `/datasets` route reads or writes\n  data owned by one organization. These **require** the `X-Geografica-Org-Id`\n  header, naming the organization the request acts on.\n\nThe organization header is required, not a way to disambiguate between several\nmemberships. A request to an organization-scoped endpoint that omits it is\nrejected with `401`, and one naming an organization the authenticated user does\nnot belong to is rejected with `403`. Sending it to a catalog endpoint is\nharmless: it is ignored.\n\n```python\nimport requests\n\nurl = \"https://api.geografica.app/v1/datasets\"\nheaders = {\n    \"X-Geografica-Api-Key\": \"<YOUR_API_KEY>\",\n    \"X-Geografica-Org-Id\": \"<YOUR_ORG_ID>\",  # required on every /datasets route\n}\nresponse = requests.get(url, headers=headers)\ndata = response.json()\n```\n\n### Error codes\n\nGeografica uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with Geografica's servers (these are rare).\n\n| Code | Name            | Description                                                                                   |\n|------|-----------------|-----------------------------------------------------------------------------------------------|\n| 200  | OK              | Everything worked as expected.                                                                |\n| 400  | Bad Request     | The request was unacceptable, often due to missing a required parameter.                      |\n| 401  | Unauthorized    | No valid API key provided, or the `X-Geografica-Org-Id` header is missing on an organization-scoped endpoint. |\n| 403  | Forbidden       | The API key doesn’t have permissions to perform the request, or the authenticated user is not a member of the organization it names. |\n| 404  | Not Found       | The requested resource doesn’t exist.                                                         |\n| 422  | Unprocessable Entity | The request failed to validate, validation errors are available in the response.         |\n| 429  | Too Many Requests | Too many requests hit the API too quickly. We recommend an exponential backoff of your requests. |\n| 500,502,503,504  | Server Errors  | Something went wrong on Geografica’s end                                      |\n\n### Pagination\n\nPagination allows you to organize the elements returned in the API response into manageable portions. This also helps you control the network traffic.\n\nGeografica utilizes cursor-based pagination via the **cursor** and **limit** parameters to return a list of elements. The cursor parameter serves as a unique identifier for the last record that was returned and helps identify the next set of records to be returned in the next page of the response.\n\nExample with python\n\n```python\nimport requests\n\n\ndef process_paginated_data(url, headers, params={}):\n    all_data = []\n    while True:\n        response = requests.get(url, headers, params)\n        all_data.extend(response.json())\n        cursor = response.headers.get(\"x-cursor\")\n        if not cursor:\n            break\n        params[\"cursor\"] = cursor\n    return all_data\n```\n","version":"0.6.0","x-logo":{"url":"https://assets.metablock.io/artwork/geografica/dark/geografica-logo.svg","altText":"Geografica Logo"}},"servers":[{"url":"/v1"}],"paths":{"/nuts":{"get":{"tags":["NUTS"],"summary":"List NUTS regions","description":"List NUTS regions, filterable by `country` (Eurostat country code), by `level`\n(0 to 3) and by `parent` code, with a free-text `search` on the region names.\n\nFilters combine, so `country=IT&level=3` fetches every Italian province, and\n`parent=ITH4` fetches the regions immediately below `ITH4`.\n\nEach NUTS edition is a version of its regions, from the day it applies to the\nday the next edition does. The list shows the current edition unless\n`edition` names another, as in `edition=nuts_2021`, and `edition=unspecified`\nlists every edition, a code once per edition it is in. Each region carries its\n`edition`. A region of an edition no longer current has no `world_region`.\n\nTo fetch given regions by code, repeat `code`, as in `code=ITC4&code=ITH5`: the way to\nput names on the codes a dataset's rows carry, up to 500 at a time.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_nuts_nuts_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"type":"string","description":"Eurostat country code, e.g. 'IT'","default":"","title":"Country"},"description":"Eurostat country code, e.g. 'IT'"},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":3,"minimum":0},{"type":"null"}],"description":"NUTS level: 0=country, 1, 2, 3","title":"Level"},"description":"NUTS level: 0=country, 1, 2, 3"},{"name":"parent","in":"query","required":false,"schema":{"type":"string","description":"Parent NUTS code, e.g. 'ITH4'","default":"","title":"Parent"},"description":"Parent NUTS code, e.g. 'ITH4'"},{"name":"code","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":500,"description":"Codes to fetch; repeat the parameter to fetch more than one","default":[],"title":"Code"},"description":"Codes to fetch; repeat the parameter to fetch more than one"},{"name":"edition","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/NutsEdition"},{"type":"null"}],"description":"NUTS edition, e.g. 'nuts_2021'; 'unspecified' for every edition, the current one when not given","title":"Edition"},"description":"NUTS edition, e.g. 'nuts_2021'; 'unspecified' for every edition, the current one when not given"},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"},{"name":"accept","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Nuts"},"title":"Response List Nuts Nuts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/nuts/{code}":{"get":{"tags":["NUTS"],"summary":"Get a NUTS region","description":"Fetch a single NUTS region by its code, at any level of the hierarchy: the code\nlength selects the level, so `IT` is a country, `ITH` a macro-region, `ITH4` a\nregion and `ITH44` a province.","operationId":"get_nuts_nuts__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","description":"NUTS code, e.g. 'ITH44'","title":"Code"},"description":"NUTS code, e.g. 'ITH44'"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Nuts"}}}},"404":{"description":"NUTS region not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datasets":{"post":{"tags":["Datasets"],"summary":"Create a dataset","description":"Create a dataset from a file upload or a remote endpoint. Datasets are scoped\nto the calling organization and let you bring your own data onto the map.\n\nThe payload takes a `name` and exactly one source:\n\n* **File upload**: pass `filename`. The response carries an `upload` object\n  with a presigned S3 POST: send a multipart form to `upload.url` with every\n  `upload.fields` entry first and the file as the last field. The API never\n  proxies the bytes.\n* **Remote endpoint**: pass `endpoint` with a `url` and optional request\n  `headers` (for authentication tokens and the like). The URL must be HTTPS\n  and resolve to a public address, redirects are not followed and responses\n  are capped at the upload size limit.\n\nThe source format is detected from the file suffix, or for remote endpoints\nfrom the response `Content-Type` header. An endpoint answering with the generic\n`application/octet-stream` is read by the suffix of its URL path instead.\nSupported formats:\n\n* **GeoJSON** (`.geojson`): a `Feature` or `FeatureCollection`, with Point,\n  Line and Polygon geometries (multi variants included).\n* **JSON** (`.json`): a GeoJSON object, or a list of flat record objects\n  treated as a table.\n* **CSV / TSV** (`.csv`, `.tsv`): delimited tables with a header row.\n* **Excel** (`.xlsx`): the first sheet, read as a table.\n\nWhen the data covers a single country, pass its ISO 3166-1 alpha-2 code as\n`country`: the rows of a table are then also matched on the other codes of\nthat country's regions, the GSS codes of the United Kingdom for instance (see\nthe ingestion).\n\nWhen the data refers to a day in the past, pass it as `reference_date`: the\nrows of a table are then matched on the regions as they were that day, and\nthe map draws those regions, including ones since merged, split or renamed.\nThe 2016 results of a vote by district, for instance, match the districts of\n2016. Without it the rows are matched on the regions as they are today.\n\nA newly created dataset has status `pending`: upload the file if the source is\na file, then trigger the ingestion to make it queryable.","operationId":"create_dataset_datasets_post","parameters":[{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetCreated"}}}},"422":{"description":"Invalid payload or duplicate name"}}},"get":{"tags":["Datasets"],"summary":"List datasets","description":"List the datasets of the calling organization, ordered by name.\n\nThe list can be narrowed by `status` (`pending`, `processing`, `ready` or\n`error`), by `kind` (`geographic` for datasets stored as features, `tabular`\nfor datasets joined onto boundaries) and by a free-text `search` on the dataset\nname and description.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_datasets_datasets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DatasetStatus"},{"type":"null"}],"description":"Filter by ingest status","title":"Status"},"description":"Filter by ingest status"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DatasetKind"},{"type":"null"}],"description":"Filter by kind","title":"Kind"},"description":"Filter by kind"},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"},{"name":"accept","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dataset"},"title":"Response List Datasets Datasets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datasets/{dataset_id}/ingest":{"post":{"tags":["Datasets"],"summary":"Trigger dataset ingestion","description":"Queue the ingest task for the dataset: it acquires the data (uploaded file or\nremote endpoint), profiles it and makes the dataset ready. The response is\nimmediate and returns the dataset as `pending`, with any previous\n`error_message` cleared: poll it until its status is `ready` or `error`.\nRe-running the ingestion replaces the dataset content, it never appends.\n\nA dataset imported from a data source (`source_type` `database`) is refreshed\nby importing its source again from the provider, as the scheduled import does.\n\nGeographic sources are stored as features and get a computed `bbox` and\n`geometry_type`. Tabular sources are resolved in two steps:\n\n1. **Coordinates**: if the table has latitude/longitude columns (`lat`,\n   `latitude` / `lon`, `lng`, `long`, `longitude`) with in-range values, rows\n   become point features.\n2. **Boundary join**: otherwise each column is matched against the boundary\n   sets: **world regions** (countries by ISO code, name or admin-managed\n   alias, and first-level subdivisions by ISO 3166-2 code such as `CA-ON`, so\n   one column can mix both), and **NUTS** codes. When the dataset has a\n   `country`, a value also matches a region of that country by one of its\n   other codes, listed under `codes` by the world region endpoints, such as\n   the GSS code `S12000034` of Aberdeenshire. A column qualifies when at least 80% of its non-empty\n   values match. The best match sets `boundary` and `join_column`, and rows are\n   stored as records keyed by the normalized boundary code, ready to be joined\n   onto the shared boundary tiles client-side.\n\nSources that yield neither coordinates nor a boundary join fail with a\nuser-readable `error_message`.\n\nThe rows whose code matches no region are left out of a ready dataset, and\ntheir codes are listed, sorted, in `unmatched_codes`: the values of the join\ncolumn of a file, or the area codes of a data source. A data source often\npublishes aggregates alongside its regions, such as `EU27_2020` or `WLD`,\nwhich are listed too. Every ingest replaces the list, and it is empty when\nevery row matched.\n\nEvery ready dataset also carries an `attributes` profile: per-column `name`,\n`type` (`string`, `integer`, `number`, `boolean`, `datetime`), value ranges for\nnumeric and datetime columns, and the distinct values of small categorical\ncolumns. The front-end styling panel is driven entirely by this profile.","operationId":"ingest_dataset_datasets__dataset_id__ingest_post","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"404":{"description":"Dataset not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datasets/{dataset_id}":{"get":{"tags":["Datasets"],"summary":"Get a dataset","description":"Fetch a single dataset of the calling organization with its full metadata:\nsource configuration, `bbox` and `geometry_type` for geographic datasets,\n`boundary` and `join_column` for tabular datasets joined onto boundaries, and\nthe `attributes` column profile.\n\nThis is the endpoint to poll after triggering an ingestion. A dataset moves\nthrough four statuses:\n\n| Status       | Meaning                                    |\n|--------------|--------------------------------------------|\n| `pending`    | Created, source not ingested yet           |\n| `processing` | The ingest task is running                 |\n| `ready`      | Content and metadata are available         |\n| `error`      | Ingest failed, see `error_message`         |","operationId":"get_dataset_datasets__dataset_id__get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"404":{"description":"Dataset not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Datasets"],"summary":"Update a dataset","description":"Change what the organization decides about one of its datasets: its name, its\ndescription, and whether it is published. Fields left out of the payload keep\ntheir current value, so a dataset can be published without sending its name\nback, and renamed without saying anything about its visibility.\n\nEverything the data itself determines is read-only here: the kind, status,\ngeometry, boundary, column profile and counts are written by the ingestion,\nand the source a dataset is acquired from is fixed when it is created. Names\nare unique within the organization, so renaming a dataset onto the name of\nanother one is refused.\n\nPublishing a dataset lets anyone holding its id read it and its rows, without\nbelonging to the organization, and lists it among the datasets a public\norganization shares. Making it private again withdraws both, from the next\nrequest on.","operationId":"update_dataset_datasets__dataset_id__patch","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"404":{"description":"Dataset not found"},"422":{"description":"Invalid payload or duplicate name"}}},"delete":{"tags":["Datasets"],"summary":"Delete a dataset","description":"Delete a dataset of the calling organization together with its content, the\ningested features or records and the raw source stored on upload.\n\nThe dataset is not recoverable once deleted, and any map layer built on top of\nit stops resolving.","operationId":"delete_dataset_datasets__dataset_id__delete","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Dataset not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datasets/{dataset_id}/data":{"get":{"tags":["Datasets"],"summary":"Get dataset data","description":"The rows the ingest task loaded for the dataset, as a flat JSON array.\n\nA time series, a dataset whose `frequency` is not `unspecified`, returns the\nrows of one period: the one given as `time`, or the latest when it is omitted.\nIts periods are listed by the dataset's `times`. Given one or more `region`\ncodes, it returns every period of those regions instead, to draw their\nseries. A dataset with no time dimension ignores `time` and returns every row,\nor only the rows of the `region` codes given.\n\nThe response is not paginated: a period is consumed whole, both to fill a\ntable and to colour a map, which needs every row at once.\n\nColumns are whatever the ingest task found in the source, so a row is an open\nobject; the `attributes` profile on the dataset describes each column and its\ntype. The two dataset kinds add one thing each:\n\n- **Tabular** rows carry the normalised boundary code under the dataset's own\n  `join_column` name, the same value the boundary tiles expose as `code`.\n  Joining the two client-side is what draws a choropleth: set `promoteId` to\n  `code` on the tile source and apply the values with `setFeatureState`.\n  A row whose code matches a boundary also carries its `level`, and for a\n  world region its area in km² as `area_km2`, to turn a total into a density.\n  Both are read from the boundary as it was on the dataset's reference date,\n  and a source column of the same name wins over either.\n- **Geographic** rows carry `feature_id` and a GeoJSON `geometry` object,\n  ready to be assembled into a `FeatureCollection`.\n\nA dataset whose ingest has not finished, or failed, simply has no rows yet and\nreturns an empty array.","operationId":"get_dataset_data_datasets__dataset_id__data_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Period to return, the latest when omitted","title":"Time"},"description":"Period to return, the latest when omitted"},{"name":"region","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":20,"description":"Regions to return every period of, instead of one period","default":[],"title":"Region"},"description":"Regions to return every period of, instead of one period"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatasetRow"},"title":"Response Get Dataset Data Datasets  Dataset Id  Data Get"}}}},"404":{"description":"Dataset not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datasets/{dataset_id}/times":{"get":{"tags":["Datasets"],"summary":"Get dataset periods","description":"The periods the dataset holds data for, oldest first, as ISO dates.\n\nEach is the start of the period it stands for, so an annual value for 2015 is\nlisted as `2015-01-01`. Pass one as `time` to the dataset's data to read the\nrows of that period.\n\nA dataset with no time dimension, or whose ingest has not finished, returns an\nempty array.","operationId":"get_dataset_times_datasets__dataset_id__times_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"date"},"title":"Response Get Dataset Times Datasets  Dataset Id  Times Get"}}}},"404":{"description":"Dataset not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datasets/{dataset_id}/tilegram":{"get":{"tags":["Datasets"],"summary":"Get a dataset tilegram","description":"A hexagon map of one value column of a tabular dataset: each region is given\nhexagons in proportion to its value, laid out roughly where the region is, so\na region with twice the value covers twice the tiles.\n\nThe regions are those of the deepest level the rows hold, each with a positive\nvalue of `column`, which must be a numeric column of the dataset's\n`attributes`. A time series is read at `time`, or at its latest period when\nit is omitted; a dataset with no time dimension ignores `time`.\n\nWith `per_area`, each value is divided by the area of its region in km²\nfirst, so the tiles follow the density rather than the total: a count of\nresidents becomes residents per km². Only a dataset joined to world regions\ncarries the area, and any other answers `422`.\n\n`tiles` is how many hexagons to lay out. Every region with a value holds at\nleast one, so `cells` can have a few more; `unit` is the value one hexagon\nstands for, per km² with `per_area`.\n\nEach cell is a hexagon of a grid of pointy-top hexagons, at axial coordinates\n`q` and `r`, with the code of its region as the rows name it. The centre of a\ncell of side `s` is at `x = s * √3 * (q + r / 2)` and `y = s * 3/2 * r`, with\n`y` growing northwards. Cells are listed row by row from the south.\n\nThe layout follows the dataset: the same request returns the same cells until\nthe dataset is ingested again. A layout not ready yet answers `202` with\n`{\"status\": \"queued\"}` and a `Retry-After` header, in seconds: it is being\nlaid out, which takes up to a few seconds, and asking again after that delay\nreturns it. Asking again before it is ready answers `202` again.\n\nA dataset that is not tabular or is not joined to world regions or NUTS\nanswers `422`, as does a `column` that is not numeric. A dataset holding more\nthan 500 regions at its deepest level is refused once it has been tried: the\nfirst request answers `202`, and the next ones `422`.","operationId":"get_dataset_tilegram_datasets__dataset_id__tilegram_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"column","in":"query","required":true,"schema":{"type":"string","description":"Numeric column the tiles are sized by","title":"Column"},"description":"Numeric column the tiles are sized by"},{"name":"time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Period to read, the latest when omitted","title":"Time"},"description":"Period to read, the latest when omitted"},{"name":"tiles","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":20,"description":"Number of hexagons to lay out","default":150,"title":"Tiles"},"description":"Number of hexagons to lay out"},{"name":"per_area","in":"query","required":false,"schema":{"type":"boolean","description":"Divide each value by the area of its region in km² first","default":false,"title":"Per Area"},"description":"Divide each value by the area of its region in km² first"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tilegram"}}}},"404":{"description":"Dataset not found"},"202":{"description":"The tilegram is being laid out, ask again after Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TilegramQueued"}}}},"422":{"description":"The dataset or the column cannot be laid out"}}}},"/licenses":{"get":{"tags":["Licenses"],"summary":"List licences","description":"The licences a dataset can be published under, with the full name and a link\nto the legal text of each.\n\nThe `id` is the value to send as the `license` of a dataset. `unspecified`,\n`proprietary`, `other` and `public-domain` are statements about the terms\nrather than published licences, so their `url` is empty.","operationId":"list_licenses_licenses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/License"},"type":"array","title":"Response List Licenses Licenses Get"}}}}}}},"/world-regions":{"get":{"tags":["World Regions"],"summary":"List world regions","description":"List world regions, filterable by `country` (ISO 3166-1 alpha-2), by `level`\n(0 for countries, 1 to 4 for first to fourth-level subdivisions), by `parent` code, by `continent` (the\nUN M49 region, e.g. `europe`), and with a free-text `search` on the region\nnames.\n\nFilters combine, so `country=US&level=1` fetches every subdivision of the\nUnited States, and `parent=US` fetches the regions immediately below `US`. For\na country these two are the same set; they part company only below the first\nlevel.\n\nTo fetch given regions by code, repeat `code`, as in `code=IT&code=FR-IDF`: the way to\nput names on the codes a dataset's rows carry, up to 500 at a time.\n\nEvery region carries its `bbox` as `[west, south, east, north]`, ready to fit\na map to. For a region crossing the antimeridian `east` is past 180, so the\nbox wraps tightly around the region instead of spanning the globe. It also\ncarries the area of its geometry in km², `area_km2`, to turn a count into a\ndensity, and the number of vertices of the geometry, `vertices`, and of the\nlighter geometry drawn on the zoomed out map, `vertices_low`.\n\nThe regions are sorted by `level` unless `sort_by` asks for `area_km2`, and\n`desc` reverses the order, so `sort_by=area_km2&desc=true` lists the largest\nregions first. Regions with no geometry have no area and come last in both\ndirections. Sorting combines with every filter, and the next page keeps the\norder of the first one.","operationId":"list_world_regions_world_regions_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code, e.g. 'US'","default":"","title":"Country"},"description":"ISO 3166-1 alpha-2 country code, e.g. 'US'"},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":4,"minimum":0},{"type":"null"}],"description":"Depth below the country; 0 is the country","title":"Level"},"description":"Depth below the country; 0 is the country"},{"name":"parent","in":"query","required":false,"schema":{"type":"string","description":"Code of the containing region, e.g. 'US'","default":"","title":"Parent"},"description":"Code of the containing region, e.g. 'US'"},{"name":"continent","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Continent"},{"type":"null"}],"description":"UN M49 region of the country","title":"Continent"},"description":"UN M49 region of the country"},{"name":"code","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":500,"description":"Codes to fetch; repeat the parameter to fetch more than one","default":[],"title":"Code"},"description":"Codes to fetch; repeat the parameter to fetch more than one"},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/WorldRegionSortBy","description":"Field the regions are sorted by. Ignored with a cursor, the next page keeps the order of the first one","default":"level"},"description":"Field the regions are sorted by. Ignored with a cursor, the next page keeps the order of the first one"},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort in descending order, largest first for the area. Ignored with a cursor, the next page keeps the order of the first one","default":false,"title":"Desc"},"description":"Sort in descending order, largest first for the area. Ignored with a cursor, the next page keeps the order of the first one"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"},{"name":"accept","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorldRegion"},"title":"Response List World Regions World Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/world-regions/search":{"get":{"tags":["World Regions"],"summary":"Search world regions","description":"Search the world regions by name, best matches first, for a search box that\ntakes the user to a region.\n\nA region matches when its name, or its English or Latin-transliterated name,\ncontains `q`, ignoring case. The matches are ranked:\n\n1. a name equal to `q`\n2. a name starting with `q`\n3. a name with a word starting with `q`\n4. a name containing `q` anywhere else\n\nWithin a rank the larger region comes first: countries before their\nsubdivisions, and the larger area within a level. So `roma` puts Roma, the\nprovince, before Roma, the city.\n\nOnly current regions with a geometry are returned, each with its `bbox` to\nfit a map to. Unlike the list, there is no cursor: the response is the ten\nbest matches.","operationId":"search_world_regions_world_regions_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Text to find in the region names","title":"Q"},"description":"Text to find in the region names"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorldRegion"},"title":"Response Search World Regions World Regions Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/world-regions/{code}":{"get":{"tags":["World Regions"],"summary":"Get a world region","description":"Fetch one region by its `code`. Countries and subdivisions are looked up\nthrough the same path, and the code is not case sensitive: `US` and `us`\nreturn the same country.\n\nA region with an ISO code is found by it: ISO 3166-1 alpha-2 for a country\n(`IT`), ISO 3166-2 for a subdivision (`FR-IDF`, `GB-WLS`). The `iso` field of\nthe response is set for these regions. A region without an ISO code has a code\nof its own, which is not built from any public scheme, so take it from the\nlisting rather than constructing it.\n\nThe response carries the NUTS regions covering the region, `nuts`, which the\nlisting leaves empty.","operationId":"get_world_region_world_regions__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","description":"Region code: ISO 3166-1 alpha-2 for a country (e.g. 'US'), or a subdivision code as returned by the listing (e.g. 'FR-IDF')","title":"Code"},"description":"Region code: ISO 3166-1 alpha-2 for a country (e.g. 'US'), or a subdivision code as returned by the listing (e.g. 'FR-IDF')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorldRegion"}}}},"404":{"description":"World region not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiles/world-regions/{z}/{x}/{y}.pbf":{"get":{"tags":["World Regions"],"summary":"World regions vector tile","description":"Mapbox Vector Tile (MVT) with a single `world_regions` layer, generated live from PostGIS via `ST_AsMVT`. Features carry `code`, `name`, `level`, `type` and `area_km2` only, subdivisions listed after their countries so they draw on top. `level` picks one level, `country` one country, and `region` that region with its direct subdivisions. `date` draws the regions as they were that day, a region since merged, split or renamed included. How deep a tile goes is otherwise the endpoint's to decide: scoped to a country or a region it carries every level, and unscoped it carries only what the zoom can show, since a world tile holding every subdivision on Earth runs to megabytes of regions smaller than a pixel. Asking unscoped for a level past that depth is a 400: name a `country` or a `region`, or ask at a closer zoom.","operationId":"get_world_regions_tile_tiles_world_regions__z___x___y__pbf_get","parameters":[{"name":"z","in":"path","required":true,"schema":{"type":"integer","maximum":22,"minimum":0,"description":"Zoom level","title":"Z"},"description":"Zoom level"},{"name":"x","in":"path","required":true,"schema":{"type":"integer","minimum":0,"description":"Tile column (XYZ scheme)","title":"X"},"description":"Tile column (XYZ scheme)"},{"name":"y","in":"path","required":true,"schema":{"type":"integer","minimum":0,"description":"Tile row (XYZ scheme)","title":"Y"},"description":"Tile row (XYZ scheme)"},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":4,"minimum":0},{"type":"null"}],"description":"Region level: 0=country, 1 to 4=subdivisions","title":"Level"},"description":"Region level: 0=country, 1 to 4=subdivisions"},{"name":"country","in":"query","required":false,"schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code, e.g. 'US'","default":"","title":"Country"},"description":"ISO 3166-1 alpha-2 country code, e.g. 'US'"},{"name":"region","in":"query","required":false,"schema":{"type":"string","description":"Region code, e.g. 'IT-25': the region and its direct subdivisions only","default":"","title":"Region"},"description":"Region code, e.g. 'IT-25': the region and its direct subdivisions only"},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Draw the regions as they were on this day, e.g. '2016-06-23', the current ones when omitted","title":"Date"},"description":"Draw the regions as they were on this day, e.g. '2016-06-23', the current ones when omitted"}],"responses":{"200":{"description":"Successful Response","content":{"application/vnd.mapbox-vector-tile":{}}},"204":{"description":"Empty tile — no boundaries intersect it"},"400":{"description":"Tile x/y out of range for the zoom level, or a `level` deeper than an unscoped tile carries at this zoom"},"503":{"description":"Too many tiles requested at once; retry after the seconds in `Retry-After`"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiles/points-of-interest/{z}/{x}/{y}.pbf":{"get":{"tags":["Points of Interest"],"summary":"Points of interest vector tile","description":"Returns a Mapbox Vector Tile with the imported points of interest in its\n`points_of_interest` layer. A feature carries its numeric ID, category, and\nname when known. A point appears only from the zoom level selected for its\ncategory.\n\nPass `category` more than once to limit the tile to selected categories, such\nas `amenity:school` and `tourism:museum`. Without it, the tile includes every\nimported category visible at the requested zoom.","operationId":"get_points_of_interest_tile_tiles_points_of_interest__z___x___y__pbf_get","parameters":[{"name":"z","in":"path","required":true,"schema":{"type":"integer","maximum":22,"minimum":0,"description":"Zoom level","title":"Z"},"description":"Zoom level"},{"name":"x","in":"path","required":true,"schema":{"type":"integer","minimum":0,"description":"Tile column (XYZ scheme)","title":"X"},"description":"Tile column (XYZ scheme)"},{"name":"y","in":"path","required":true,"schema":{"type":"integer","minimum":0,"description":"Tile row (XYZ scheme)","title":"Y"},"description":"Tile row (XYZ scheme)"},{"name":"category","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Categories to include, each as an OpenStreetMap key:value pair; repeat the parameter to select more than one","default":[],"title":"Category"},"description":"Categories to include, each as an OpenStreetMap key:value pair; repeat the parameter to select more than one"}],"responses":{"200":{"description":"Successful Response","content":{"application/vnd.mapbox-vector-tile":{}}},"204":{"description":"Empty tile — no POIs intersect it at this zoom"},"400":{"description":"Tile x/y out of range for the zoom level"},"503":{"description":"Too many tiles requested at once; retry after the seconds in `Retry-After`"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/points-of-interest/sources":{"get":{"tags":["Points of Interest"],"summary":"List points of interest sources","description":"Lists the sources the points of interest come from, by name. A source is an\n[OpenStreetMap](https://www.openstreetmap.org) extract published by\n[Geofabrik](https://download.geofabrik.de), such as `europe`, with the release\nthat was imported and when, and how many points and categories it holds.\n\nShow the `attribution` of a source wherever its points appear on a map.","operationId":"list_poi_sources_points_of_interest_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PoiSource"},"type":"array","title":"Response List Poi Sources Points Of Interest Sources Get"}}}}}}},"/points-of-interest/keys":{"get":{"tags":["Points of Interest"],"summary":"List points of interest keys","description":"Lists the tag keys the categories of points of interest are made of, such as\n`amenity`, `shop` or `power`, with how many points and distinct values each\nhas, most points first. Use it as the top level of a category picker, then list\nthe categories of the chosen key.\n\nPass `source` to count the points of one source only; without it the counts\nare summed across sources.","operationId":"list_poi_keys_points_of_interest_keys_get","parameters":[{"name":"source","in":"query","required":false,"schema":{"type":"string","description":"Count only the points of this source, e.g. europe","default":"","title":"Source"},"description":"Count only the points of this source, e.g. europe"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PoiKey"},"title":"Response List Poi Keys Points Of Interest Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/points-of-interest/categories":{"get":{"tags":["Points of Interest"],"summary":"List points of interest categories","description":"Lists the categories of points of interest, such as `amenity:school` or\n`power:plant`, with how many points each has and the zoom level from which\nthey appear in the tiles, most points first. A category is the value to pass\nas `category` to the points of interest tiles.\n\n- `key` keeps the categories of one tag key, such as `amenity`.\n- `search` keeps the categories whose name contains the text.\n- `min_count` leaves out the categories with fewer points, the long tail of\n  rare tags.\n- `source` counts the points of one source only; without it the counts are\n  summed across sources. Pass the same `source` on every page.\n\nThe counts change only when a source is imported again.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_poi_categories_points_of_interest_categories_get","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string","description":"Filter by tag key, e.g. amenity","default":"","title":"Key"},"description":"Filter by tag key, e.g. amenity"},{"name":"source","in":"query","required":false,"schema":{"type":"string","description":"Count only the points of this source, e.g. europe","default":"","title":"Source"},"description":"Count only the points of this source, e.g. europe"},{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search the category name","default":"","title":"Search"},"description":"Search the category name"},{"name":"min_count","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Leave out categories with fewer points","default":0,"title":"Min Count"},"description":"Leave out categories with fewer points"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"},{"name":"accept","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PoiCategory"},"title":"Response List Poi Categories Points Of Interest Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canvases":{"post":{"tags":["Canvases"],"summary":"Create a canvas","description":"Create a canvas in the calling organization. The payload takes a `name`,\nunique within the organization, an optional `description`, the `public` flag\nand the `config` envelope holding the composition. Omit the config to start\nfrom an empty canvas centred on the world, and fill it in later.\n\nEvery layer of the config names the source it reads from, and the source has\nto be resolvable: a layer over a dataset the organization does not own is\nrejected with `422`, as is a config repeating a layer `id`. Layer `style` is\nthe exception, an open object stored as sent and interpreted by the map\nrenderer.\n\nSet `public` to make the canvas readable by anyone holding its id through the\npublic endpoints. Publishing it does not publish the datasets it reads, which\ncarry their own flag.","operationId":"create_canvas_canvases_post","parameters":[{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Canvas"}}}},"422":{"description":"Invalid payload or duplicate name"}}},"get":{"tags":["Canvases"],"summary":"List canvases","description":"List the canvases of the calling organization, ordered by name.\n\nThe list can be narrowed by `public`, to separate the published canvases from\nthe drafts, by `dataset_id`, to find which canvases would be affected by a\nchange to a dataset, by `palette_id`, to find which canvases colour with a\npalette before editing or deleting it, and by a free-text `search` on the\ncanvas name and description.\n\nEach canvas also carries the colours of the organization palettes its layers\nuse, under `palettes`, keyed by id.\n\nEach canvas comes back with its full `config`, so a client can render a\ngallery of saved maps without a call per canvas.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_canvases_canvases_get","parameters":[{"name":"public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by published state","title":"Public"},"description":"Filter by published state"},{"name":"dataset_id","in":"query","required":false,"schema":{"type":"string","description":"Only the canvases reading from this dataset","default":"","title":"Dataset Id"},"description":"Only the canvases reading from this dataset"},{"name":"palette_id","in":"query","required":false,"schema":{"type":"string","description":"Only the canvases colouring with this palette","default":"","title":"Palette Id"},"description":"Only the canvases colouring with this palette"},{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Canvas"},"title":"Response List Canvases Canvases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/canvases/{canvas_id}":{"get":{"tags":["Canvases"],"summary":"Get a canvas","description":"Fetch a single canvas of the calling organization, with the full composition\nits `config` holds: the camera the map opens at, the basemap, the shared\ntimeline and the ordered layers, drawn bottom to top.\n\nThis is the authenticated view, so it also names the `user_id` of the member\nwho created the canvas, which the public view leaves out. A canvas belonging\nto another organization answers `404`, published or not.","operationId":"get_canvas_canvases__canvas_id__get","parameters":[{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","description":"Canvas UUID","title":"Canvas Id"},"description":"Canvas UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Canvas"}}}},"404":{"description":"Canvas not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Canvases"],"summary":"Update a canvas","description":"Update a canvas of the calling organization. Omitted fields are left as they\nare, so the flag of a canvas can be flipped, or its name changed, without\nsending the composition back.\n\nThe `config` is the exception to the partial update: when present it replaces\nthe stored one whole. Layers are not merged, and a config carrying a single\nlayer leaves the canvas with that layer alone, so edit a canvas by sending the\ncomposition the map should be restored to rather than the part that changed.\n\nA replacement config is validated the way a new one is: it may only name\ndatasets the organization owns, and its layer ids must be unique.","operationId":"update_canvas_canvases__canvas_id__patch","parameters":[{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","description":"Canvas UUID","title":"Canvas Id"},"description":"Canvas UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Canvas"}}}},"404":{"description":"Canvas not found"},"422":{"description":"Invalid payload or duplicate name"}}},"delete":{"tags":["Canvases"],"summary":"Delete a canvas","description":"Delete a canvas of the calling organization.\n\nThe canvas is not recoverable once deleted. Nothing it read is affected: the\ndatasets, boundaries and indicators its layers named are left untouched, and\na link to the canvas stops resolving whether or not it was published.","operationId":"delete_canvas_canvases__canvas_id__delete","parameters":[{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","description":"Canvas UUID","title":"Canvas Id"},"description":"Canvas UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Canvas not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/palettes":{"post":{"tags":["Palettes"],"summary":"Create a palette","description":"Create a palette in the calling organization. The payload takes a `name`,\nunique within the organization, an optional `description`, the `kind` and the\n`colors`.\n\nHow many colours a palette takes depends on its kind: 2 to 24 distinct colours\nfor `categorical`, 2 to 9 stops for `sequential` and 3 to 9 for `diverging`.\nA payload outside those bounds, holding a colour that is not `#rrggbb`, or\nusing one of the greys reserved for missing data is rejected with `422`, as is\na name already taken.","operationId":"create_palette_palettes_post","parameters":[{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaletteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Palette"}}}},"422":{"description":"Invalid colours or duplicate name"}}},"get":{"tags":["Palettes"],"summary":"List palettes","description":"List the palettes of the calling organization, ordered by name.\n\nThe list can be narrowed by `kind`, to offer only the palettes suited to a\ncolumn, and by a free-text `search` on the palette name and description. Each\npalette comes back with its colours, so a picker can draw its swatches without\na call per palette.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_palettes_palettes_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PaletteKind"},{"type":"null"}],"description":"Filter by kind","title":"Kind"},"description":"Filter by kind"},{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Palette"},"title":"Response List Palettes Palettes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/palettes/{palette_id}":{"get":{"tags":["Palettes"],"summary":"Get a palette","description":"Get a palette of the calling organization by its UUID.\n\nA palette of another organization answers `404`, as a missing one does.","operationId":"get_palette_palettes__palette_id__get","parameters":[{"name":"palette_id","in":"path","required":true,"schema":{"type":"string","description":"Palette UUID","title":"Palette Id"},"description":"Palette UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Palette"}}}},"404":{"description":"Palette not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Palettes"],"summary":"Update a palette","description":"Update a palette of the calling organization. Only the fields the payload\ncarries are written.\n\nThe `kind` and the `colors` travel together: how many colours a palette takes\ndepends on its kind, so sending one without the other is rejected with `422`.\nThe colours are replaced whole.\n\nEvery canvas colouring with the palette draws with the new colours from its\nnext read, without being saved again.","operationId":"update_palette_palettes__palette_id__patch","parameters":[{"name":"palette_id","in":"path","required":true,"schema":{"type":"string","description":"Palette UUID","title":"Palette Id"},"description":"Palette UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaletteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Palette"}}}},"404":{"description":"Palette not found"},"422":{"description":"Invalid colours or duplicate name"}}},"delete":{"tags":["Palettes"],"summary":"Delete a palette","description":"Delete a palette of the calling organization.\n\nThe palette is not recoverable once deleted. The canvases colouring with it\nare kept: their layers are pointed back at the default palette for their\ncolumn, and draw with the built-in colours.","operationId":"delete_palette_palettes__palette_id__delete","parameters":[{"name":"palette_id","in":"path","required":true,"schema":{"type":"string","description":"Palette UUID","title":"Palette Id"},"description":"Palette UUID"},{"name":"x-geografica-org-id","in":"header","required":true,"schema":{"type":"string","minLength":1,"title":"Organization","description":"ID of the organization the request acts within"},"description":"ID of the organization the request acts within"}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Palette not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/datasets":{"get":{"tags":["Public"],"summary":"List public datasets","description":"The datasets published by every organization, the most recently updated first.\n\nA dataset appears when it is public in its own right, whether or not its\norganization is. Each comes back with `org_name`, the short name of the\norganization it belongs to.\n\nThe list can be narrowed by `status`, by `kind` and by a free-text `search` on\nthe dataset name and description.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_all_public_datasets_public_datasets_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DatasetStatus"},{"type":"null"}],"description":"Filter by ingest status","title":"Status"},"description":"Filter by ingest status"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DatasetKind"},{"type":"null"}],"description":"Filter by kind","title":"Kind"},"description":"Filter by kind"},{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicDataset"},"title":"Response List All Public Datasets Public Datasets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/canvases":{"get":{"tags":["Public"],"summary":"List public canvases","description":"The canvases published by every organization, the most recently updated first.\n\nA canvas appears when it is public in its own right, whether or not its\norganization is. Each comes back with `org_name`, the short name of the\norganization it belongs to, and its full `config`. The `search` parameter\nmatches the canvas name and description.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_all_public_canvases_public_canvases_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicCanvas"},"title":"Response List All Public Canvases Public Canvases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/orgs":{"get":{"tags":["Public"],"summary":"List public organizations","description":"The organizations of this space which have made themselves public, ordered by\nname.\n\nBeing public is opt-in: an organization sets the flag on itself through\n`PATCH /orgs/{org_id_or_name}`, and until it does it does not appear here.\nThe `search` parameter matches the organization name and description.\n\nThis is the directory behind a public gallery. It is the only endpoint that\nenumerates organizations without a login, so an organization which shares a\ndataset or a canvas by link, without publishing a profile, stays absent from\nit while its links keep working.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_public_orgs_public_orgs_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicOrg"},"title":"Response List Public Orgs Public Orgs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/orgs/{org_id_or_name}":{"get":{"tags":["Public"],"summary":"Get a public organization","description":"The profile of a public organization, by short name or id, with the\n`description` and the `logo_id` it shows itself by. The logo is served from\nthe assets host at `/u/{logo_id}`.\n\nAn organization which has not made itself public answers `404`, exactly as a\nname which was never taken does: whether a private organization exists is not\nsomething this API tells a caller who could not read it anyway.","operationId":"get_public_org_public_orgs__org_id_or_name__get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrg"}}}},"404":{"description":"Not found, or not published"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/orgs/{org_id_or_name}/datasets":{"get":{"tags":["Public"],"summary":"List the datasets an organization publishes","description":"The datasets a public organization publishes, ordered by name.\n\nBoth flags have to be set: the organization is listed only if it made itself\npublic, and a dataset appears only if it is public in its own right. A private\norganization answers `404` for the whole listing rather than an empty array.\n\nThe list can be narrowed by `status`, by `kind` and by a free-text `search` on\nthe dataset name and description, the same way the members-only listing can.\nWhat comes back is the public projection of each dataset: no acquisition\nconfig, since that can hold the credentials the source is fetched with, no\ningest error and no creating user.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_public_datasets_public_orgs__org_id_or_name__datasets_get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DatasetStatus"},{"type":"null"}],"description":"Filter by ingest status","title":"Status"},"description":"Filter by ingest status"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DatasetKind"},{"type":"null"}],"description":"Filter by kind","title":"Kind"},"description":"Filter by kind"},{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicDataset"},"title":"Response List Public Datasets Public Orgs  Org Id Or Name  Datasets Get"}}}},"404":{"description":"Not found, or not published"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/orgs/{org_id_or_name}/canvases":{"get":{"tags":["Public"],"summary":"List the canvases an organization publishes","description":"The canvases a public organization publishes, ordered by name.\n\nBoth flags have to be set, as for the datasets: a private organization answers\n`404`, and a canvas the organization has not published does not appear. The\n`search` parameter matches the canvas name and description.\n\nEach canvas comes back with its full `config`, so a client can list published\nmaps and open one without a second call.\n Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"list_public_canvases_public_orgs__org_id_or_name__canvases_get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"},{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicCanvas"},"title":"Response List Public Canvases Public Orgs  Org Id Or Name  Canvases Get"}}}},"404":{"description":"Not found, or not published"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/datasets/{dataset_id}":{"get":{"tags":["Public"],"summary":"Get a public dataset","description":"Fetch a published dataset by its UUID.\n\nThe organization owning it does not have to be public. The flag on the dataset\nitself is what makes it readable, so a link to it works for whoever follows\nit, whether or not the organization publishes a profile.\n\nThe response is the public projection of the dataset, not the record its\nmembers see. It carries the metadata needed to draw the data, `bbox` and\n`geometry_type` for geographic datasets, `boundary` and `join_column` for\ntabular ones, and the `attributes` column profile. It leaves out\n`source_config`, which holds the URL the data is fetched from and the headers\nit is fetched with, along with `error_message` and the user who created the\ndataset.\n\nA dataset which is not public answers `404`, the same as one which does not\nexist.","operationId":"get_public_dataset_public_datasets__dataset_id__get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDataset"}}}},"404":{"description":"Not found, or not published"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/datasets/{dataset_id}/data":{"get":{"tags":["Public"],"summary":"Get the data of a public dataset","description":"The rows the ingest task loaded for a published dataset, as a flat JSON array.\nGated by the same lookup the dataset itself is: the data of a dataset which is\nnot public answers `404`.\n\nA time series, a dataset whose `frequency` is not `unspecified`, returns the\nrows of one period: the one given as `time`, or the latest when it is omitted.\nIts periods are listed by the dataset's `times`. Given one or more `region`\ncodes, it returns every period of those regions instead, to draw their\nseries. A dataset with no time dimension ignores `time` and returns every row,\nor only the rows of the `region` codes given.\n\nThe response is not paginated: a period is consumed whole, both to fill a\ntable and to colour a map, which needs every row at once.\n\nColumns are whatever the ingest task found in the source, so a row is an open\nobject; the `attributes` profile on the dataset describes each column and its\ntype. The two dataset kinds add one thing each:\n\n- **Tabular** rows carry the normalised boundary code under the dataset's own\n  `join_column` name, the same value the boundary tiles expose as `code`.\n  Joining the two client-side is what draws a choropleth: set `promoteId` to\n  `code` on the tile source and apply the values with `setFeatureState`.\n  A row whose code matches a boundary also carries its `level`, and for a\n  world region its area in km² as `area_km2`, to turn a total into a density.\n  Both are read from the boundary as it was on the dataset's reference date,\n  and a source column of the same name wins over either.\n- **Geographic** rows carry `feature_id` and a GeoJSON `geometry` object,\n  ready to be assembled into a `FeatureCollection`.\n\nA dataset whose ingest has not finished, or failed, simply has no rows yet and\nreturns an empty array.","operationId":"get_public_dataset_data_public_datasets__dataset_id__data_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Period to return, the latest when omitted","title":"Time"},"description":"Period to return, the latest when omitted"},{"name":"region","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":20,"description":"Regions to return every period of, instead of one period","default":[],"title":"Region"},"description":"Regions to return every period of, instead of one period"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DatasetRow"},"title":"Response Get Public Dataset Data Public Datasets  Dataset Id  Data Get"}}}},"404":{"description":"Not found, or not published"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/datasets/{dataset_id}/times":{"get":{"tags":["Public"],"summary":"Get the periods of a public dataset","description":"The periods a published dataset holds data for, oldest first, as ISO dates.\nGated by the same lookup the dataset itself is: the periods of a dataset which\nis not public answer `404`.\n\nEach is the start of the period it stands for, so an annual value for 2015 is\nlisted as `2015-01-01`. Pass one as `time` to the dataset's data to read the\nrows of that period.\n\nA dataset with no time dimension, or whose ingest has not finished, returns an\nempty array.","operationId":"get_public_dataset_times_public_datasets__dataset_id__times_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"date"},"title":"Response Get Public Dataset Times Public Datasets  Dataset Id  Times Get"}}}},"404":{"description":"Not found, or not published"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/datasets/{dataset_id}/tilegram":{"get":{"tags":["Public"],"summary":"Get the tilegram of a public dataset","description":"A hexagon map of one value column of a published tabular dataset. Gated by the\nsame lookup the dataset itself is: the tilegram of a dataset which is not\npublic answers `404`.\n\nEach region is given hexagons in proportion to its value, laid out roughly\nwhere the region is, so a region with twice the value covers twice the tiles.\nThe regions are those of the deepest level the rows hold, each with a positive\nvalue of `column`, which must be a numeric column of the dataset's\n`attributes`. A time series is read at `time`, or at its latest period when\nit is omitted; a dataset with no time dimension ignores `time`.\n\nWith `per_area`, each value is divided by the area of its region in km²\nfirst, so the tiles follow the density rather than the total: a count of\nresidents becomes residents per km². Only a dataset joined to world regions\ncarries the area, and any other answers `422`.\n\n`tiles` is how many hexagons to lay out. Every region with a value holds at\nleast one, so `cells` can have a few more; `unit` is the value one hexagon\nstands for, per km² with `per_area`.\n\nEach cell is a hexagon of a grid of pointy-top hexagons, at axial coordinates\n`q` and `r`, with the code of its region as the rows name it. The centre of a\ncell of side `s` is at `x = s * √3 * (q + r / 2)` and `y = s * 3/2 * r`, with\n`y` growing northwards. Cells are listed row by row from the south.\n\nThe layout follows the dataset: the same request returns the same cells until\nthe dataset is ingested again. A layout not ready yet answers `202` with\n`{\"status\": \"queued\"}` and a `Retry-After` header, in seconds: it is being\nlaid out, which takes up to a few seconds, and asking again after that delay\nreturns it. Asking again before it is ready answers `202` again.\n\nA dataset that is not tabular or is not joined to world regions or NUTS\nanswers `422`, as does a `column` that is not numeric. A dataset holding more\nthan 500 regions at its deepest level is refused once it has been tried: the\nfirst request answers `202`, and the next ones `422`.","operationId":"get_public_dataset_tilegram_public_datasets__dataset_id__tilegram_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","description":"Dataset UUID","title":"Dataset Id"},"description":"Dataset UUID"},{"name":"column","in":"query","required":true,"schema":{"type":"string","description":"Numeric column the tiles are sized by","title":"Column"},"description":"Numeric column the tiles are sized by"},{"name":"time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Period to read, the latest when omitted","title":"Time"},"description":"Period to read, the latest when omitted"},{"name":"tiles","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":20,"description":"Number of hexagons to lay out","default":150,"title":"Tiles"},"description":"Number of hexagons to lay out"},{"name":"per_area","in":"query","required":false,"schema":{"type":"boolean","description":"Divide each value by the area of its region in km² first","default":false,"title":"Per Area"},"description":"Divide each value by the area of its region in km² first"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tilegram"}}}},"404":{"description":"Not found, or not published"},"202":{"description":"The tilegram is being laid out, ask again after Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TilegramQueued"}}}},"422":{"description":"The dataset or the column cannot be laid out"}}}},"/public/canvases/{canvas_id}":{"get":{"tags":["Public"],"summary":"Get a public canvas","description":"Fetch a published canvas by its UUID, with the full composition its `config`\nholds: the camera, the basemap, the shared timeline and the ordered layers.\n\nAs for a dataset, the organization owning it does not have to be public. The\nflag on the canvas is what makes a link to it work.\n\nPublishing a canvas does not publish what it reads. Each layer names its\nsource, and a layer reading from a dataset which is not itself public has\nnothing a public caller can load: `/public/datasets/{dataset_id}/data` answers\n`404` for it. A canvas meant to be shared should read from published datasets,\nfrom the boundary sets of the shared catalog, or from the indicators of the\nstatistics registry, which are public to begin with.\n\nThe canvas does not name the user who created it.","operationId":"get_public_canvas_public_canvases__canvas_id__get","parameters":[{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","description":"Canvas UUID","title":"Canvas Id"},"description":"Canvas UUID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCanvas"}}}},"404":{"description":"Not found, or not published"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user":{"get":{"tags":["User"],"summary":"Authenticated user","description":"Retrieve the profile of the user the request authenticated as.\n\nThe response identifies the caller for every other endpoint of the API. Clients\ncall it after a login to populate their session, and to check that a credential\nis still good: one that no longer maps to a user is answered with `401`.","operationId":"get_authenticated_user_user_get","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized"}}},"patch":{"tags":["User"],"summary":"Update authenticated user","description":"Update the profile of the user the request authenticated as.\n\nThe update is partial: only the fields present in the payload are written, and\nsending `null` is the same as omitting the field, so a value is cleared with an\nempty string rather than a null.\n\n`country` is stored lower cased, whatever the case it is sent in.\n`mail_mailing_list` and `mail_datasets` opt the user in or out of the mailing\nlist and of the emails about their datasets. Both are on until the user turns\nthem off. `id` and `email` are not part of the payload.","operationId":"update_authenticated_user_user_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Updated user profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Invalid payload"}}}},"/user/orgs":{"get":{"tags":["User"],"summary":"User organizations","description":"List the organizations the authenticated user is a member of.\n\nEach entry carries the organization, the identity of the membership, and the\nroles the user holds in it, so this endpoint is how a client learns which\norganizations it can offer.\n\nThe roles come back as names only. What each of them actually grants is a\nseparate question, answered by `GET /user/orgs/{org_id_or_name}/permissions`.","operationId":"get_user_orgs_user_orgs_get","responses":{"200":{"description":"Organizations the user is a member of","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrgMember"},"type":"array","title":"Response Get User Orgs User Orgs Get"}}}},"401":{"description":"Unauthorized"}}}},"/user/tokens":{"get":{"tags":["User"],"summary":"List API tokens","description":"List the API tokens of the authenticated user, with their usage statistics.\n\nEach entry gives the token `id`, the tags it was created with, when it was\ncreated and, for a token created with a time to live, when it expires.\n`access_count` is the number of requests the token has authenticated and\n`last_access` the timestamp of the most recent one, so a token never used\nreports a zero count and no last access.\n\nThe `key` is masked to its first four characters, enough to tell tokens apart\nwhen matching a stored credential against this list.","operationId":"get_user_tokens_user_tokens_get","responses":{"200":{"description":"API tokens with masked keys and usage statistics","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ApiToken"},"type":"array","title":"Response Get User Tokens User Tokens Get"}}}},"401":{"description":"Unauthorized"}}},"post":{"tags":["User"],"summary":"Create API token","description":"Create a new API token for the authenticated user.\n\nThe token carries the same identity, and therefore the same permissions, as the\nuser who created it.\n\nThe payload is optional: posting no body creates a token with no tags that never\nexpires. `tags` are free form labels that record what a token was issued for, so\nit can be recognised later in the token list. `ttl` is a lifetime in seconds\ncounted from creation; once it elapses the token stops authenticating, so a\nshort lived token is replaced rather than renewed.\n\nThis is the only response where the key appears in full: store it as it is\nreturned or the token has to be replaced.","operationId":"create_user_token_user_tokens_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiTokenCreate"},{"type":"null"}],"title":"Create"}}}},"responses":{"201":{"description":"The new token, the only response with the full key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiToken"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/tokens/{token_id}":{"delete":{"tags":["User"],"summary":"Delete API token","description":"Delete an API token of the authenticated user.\n\nThe path takes the token `id` reported by the token list, not the key. An id\nthat is unknown, or that belongs to somebody else, is answered with `404`.\n\nDeletion is immediate and final: the key stops authenticating on the next\nrequest and clients still configured with it start receiving `401`, so roll out\na replacement before deleting a token that is in use.","operationId":"delete_user_token_user_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the token, as returned by the token list","title":"Token Id"},"description":"Unique ID of the token, as returned by the token list"}],"responses":{"204":{"description":"Token deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Token not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/sessions":{"get":{"tags":["User"],"summary":"List sessions","description":"List the open sessions of the authenticated user, oldest first. A session is\nopened by each login and stays open until it expires or is closed, by logging\nout or with the delete operation.\n\nEach session carries when it was opened and when it expires, the browser and\nIP address it was opened from, and when and from which IP address it was last\nused. The session of the request is flagged as `current`.","operationId":"get_user_sessions_user_sessions_get","responses":{"200":{"description":"Open sessions of the user, oldest first","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Session"},"type":"array","title":"Response Get User Sessions User Sessions Get"}}}},"401":{"description":"Unauthorized"}}}},"/user/sessions/{session_id}":{"delete":{"tags":["User"],"summary":"Close a session","description":"Close a session of the authenticated user, which logs it out: the next\nrequest made with that session is refused with `401`. Closing the current\nsession logs out the caller.","operationId":"delete_user_session_user_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","description":"Unique ID of the session, as returned by the session list","title":"Session Id"},"description":"Unique ID of the session, as returned by the session list"}],"responses":{"204":{"description":"Session closed"},"401":{"description":"Unauthorized"},"404":{"description":"Session not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/orgs/{org_id_or_name}/permissions":{"get":{"tags":["User"],"summary":"Permissions of the authenticated user","description":"What the authenticated user may do in one of the organizations it belongs to,\nas the names the roles endpoints speak rather than the path and method pairs\nthe permission matcher works with.\n\nThis is what a client drives its interface from: which actions to offer, which\nto disable, which sections to leave out entirely. `GET /user/orgs` reports the\nroles a user holds, but a role is only a name until something says what it\ngrants, and `GET /orgs/{org}/roles`, which would say, is itself gated by\n`org_roles_read`. A member without that permission could not otherwise\ndiscover its own. So this endpoint checks membership and nothing more: being a\nmember is what entitles a user to know what it may do.\n\nThe permissions of every role the user holds are merged, so a user holding two\nroles gets the union of both, listed once each and ordered by name. A user\ngranted `full_permission` is allowed everything, whatever else the list holds\nor does not.\n\nA permission granted before the application declared a name for it has no name\nto be reported by and is left out, so treat the list as what the user may do,\nnever as the whole of what was granted.\n\nThe organization is named by id or short name. One the user is not a member of\nanswers `404`, the same as one which does not exist.","operationId":"get_user_org_permissions_user_orgs__org_id_or_name__permissions_get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"responses":{"200":{"description":"Permissions the user holds in the organization","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GeoPermission"},"title":"Response Get User Org Permissions User Orgs  Org Id Or Name  Permissions Get"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Organization not found, or user is not a member of it"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{org_id_or_name}":{"get":{"tags":["Orgs"],"summary":"Get an organization","description":"Retrieve an Organization by name or id","operationId":"get_org_orgs__org_id_or_name__get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"responses":{"200":{"description":"Organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrg"}}}},"403":{"description":"User is not a member of organization or does not have valid permissions"},"404":{"description":"Organization not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Orgs"],"summary":"Update an organization","description":"Update the details of an Organization. The short name cannot be changed, organizations are referenced by name, and the status is managed by the admin API.","operationId":"update_org_orgs__org_id_or_name__patch","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePublicOrg"}}}},"responses":{"200":{"description":"Organization updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrg"}}}},"403":{"description":"User is not a member of organization or does not have valid permissions"},"404":{"description":"Organization not found"},"422":{"description":"Invalid parameters"}}}},"/orgs":{"post":{"tags":["Orgs"],"summary":"Create a new organization","description":"Create a new Organization","operationId":"create_org_orgs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicOrg"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrg"}}}},"201":{"description":"Organization created"},"401":{"description":"Authentication required to create an organization"},"422":{"description":"Invalid parameters"}}}},"/orgs/{org_id_or_name}/members":{"get":{"tags":["Orgs"],"summary":"Retrieve organization members","description":"Retrieve the members of an Organization, the users holding at least one of its roles, with the roles each of them holds. Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"get_org_members_orgs__org_id_or_name__members_get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"},{"name":"role","in":"query","required":false,"schema":{"type":"string","description":"Filter by role name","default":"","title":"Role"},"description":"Filter by role name"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AccountStatus"},{"type":"null"}],"description":"Filter by member account status","title":"Status"},"description":"Filter by member account status"},{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"}],"responses":{"200":{"description":"List of Organization members","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgMember"},"title":"Response Get Org Members Orgs  Org Id Or Name  Members Get"}}}},"401":{"description":"Unauthorized"},"403":{"description":"User is not a member of organization or does not have valid permissions"},"404":{"description":"Organization not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{org_id_or_name}/logo":{"post":{"tags":["Orgs"],"summary":"Upload the organization logo","description":"Upload the image the Organization is displayed by. The image replaces the current logo and is served from the assets host at /u/<logo_id>. It can be at most 1024KB, in one of image/jpeg, image/png, image/svg+xml, image/webp.","operationId":"upload_org_logo_orgs__org_id_or_name__logo_post","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_org_logo_orgs__org_id_or_name__logo_post"}}}},"responses":{"200":{"description":"Logo uploaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrg"}}}},"403":{"description":"User is not a member of organization or does not have valid permissions"},"404":{"description":"Organization not found"},"413":{"description":"Image too large"},"415":{"description":"Unsupported image media type"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{org_id_or_name}/roles":{"get":{"tags":["Orgs"],"summary":"Retrieve organization roles","description":"Retrieve the list of roles of an Organization","operationId":"get_org_roles_orgs__org_id_or_name__roles_get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgRoleNamedPermissions_GeoPermission_"},"title":"Response Get Org Roles Orgs  Org Id Or Name  Roles Get"}}}},"401":{"description":"Unauthorized"},"403":{"description":"User does not have valid permissions"},"404":{"description":"Organization or role not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Orgs"],"summary":"Create an organization role","description":"Create a new role for an Organization","operationId":"create_org_role_orgs__org_id_or_name__roles_post","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleNamedPermissions_GeoPermission_"}}}},"responses":{"201":{"description":"Role created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRoleNamedPermissions_GeoPermission_"}}}},"422":{"description":"Invalid parameters"},"401":{"description":"Unauthorized"},"403":{"description":"User does not have valid permissions"},"404":{"description":"Organization or role not found"}}}},"/orgs/{org_id_or_name}/roles/{role_id_or_name}":{"get":{"tags":["Orgs"],"summary":"Get an organization role","description":"Retrieve a role of an Organization by ID or name","operationId":"get_org_role_orgs__org_id_or_name__roles__role_id_or_name__get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"},{"name":"role_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Role ID or name","title":"Role Id Or Name"},"description":"Role ID or name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRoleNamedPermissions_GeoPermission_"}}}},"401":{"description":"Unauthorized"},"403":{"description":"User does not have valid permissions"},"404":{"description":"Organization or role not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Orgs"],"summary":"Update an organization role","description":"Update the description and the permissions of a role. The role name cannot be changed.","operationId":"update_org_role_orgs__org_id_or_name__roles__role_id_or_name__patch","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"},{"name":"role_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Role ID or name","title":"Role Id Or Name"},"description":"Role ID or name"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoleNamedPermissions_GeoPermission_"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgRoleNamedPermissions_GeoPermission_"}}}},"422":{"description":"Invalid parameters"},"401":{"description":"Unauthorized"},"403":{"description":"User does not have valid permissions"},"404":{"description":"Organization or role not found"}}},"delete":{"tags":["Orgs"],"summary":"Delete an organization role","description":"Delete a role and remove it from all members of the Organization. The default roles cannot be deleted.","operationId":"delete_org_role_orgs__org_id_or_name__roles__role_id_or_name__delete","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"},{"name":"role_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Role ID or name","title":"Role Id Or Name"},"description":"Role ID or name"}],"responses":{"204":{"description":"Role deleted"},"409":{"description":"Default roles cannot be deleted"},"401":{"description":"Unauthorized"},"403":{"description":"User does not have valid permissions"},"404":{"description":"Organization or role not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{org_id_or_name}/invites":{"get":{"tags":["Orgs"],"summary":"Retrieve organization invitations","description":"Retrieve the invitations of an Organization. An invitation is the pending offer of a set of roles to an email address; it becomes a membership when the invitee accepts it. Pagination is based on a cursor returned in the x-cursor header of the response. Default limit: 250, Max limit: 500. See the pagination API documentation for more details.","operationId":"get_org_invites_orgs__org_id_or_name__invites_get","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/InviteStatus"},{"type":"null"}],"description":"Filter by invitation status","title":"Status"},"description":"Filter by invitation status"},{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search query","default":"","title":"Search"},"description":"Search query"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","description":"Cursor for pagination, use the x-cursor header from the previous response","default":"","title":"Cursor"},"description":"Cursor for pagination, use the x-cursor header from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Limit the number of results","default":250,"title":"Limit"},"description":"Limit the number of results"}],"responses":{"200":{"description":"List of invitations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgInvite"},"title":"Response Get Org Invites Orgs  Org Id Or Name  Invites Get"}}}},"401":{"description":"Unauthorized"},"403":{"description":"User does not have valid permissions"},"404":{"description":"Organization or invitation not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Orgs"],"summary":"Invite someone to join the organization","description":"Invite an email address to join the Organization with a set of its roles, and email them the link they accept it by. Inviting an address which already has an invitation renews it: a fresh link is issued and the previous one stops working.","operationId":"create_org_invite_orgs__org_id_or_name__invites_post","parameters":[{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgInvite"}}}},"responses":{"201":{"description":"Invitation created and emailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgInvite"}}}},"409":{"description":"The email address is already a member"},"422":{"description":"Invalid parameters, or unknown role"},"401":{"description":"Unauthorized"},"403":{"description":"User does not have valid permissions"},"404":{"description":"Organization or invitation not found"}}}},"/orgs/{org_id_or_name}/invites/{invite_id}":{"delete":{"tags":["Orgs"],"summary":"Revoke an invitation","description":"Revoke an invitation, so the link sent to the invitee stops working. An invitation which has already been accepted cannot be revoked: remove the member instead.","operationId":"revoke_org_invite_orgs__org_id_or_name__invites__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","description":"Invite ID","title":"Invite Id"},"description":"Invite ID"},{"name":"org_id_or_name","in":"path","required":true,"schema":{"type":"string","description":"Organization ID or name","title":"Org Id Or Name"},"description":"Organization ID or name"}],"responses":{"204":{"description":"Invitation revoked"},"409":{"description":"The invitation has already been accepted"},"401":{"description":"Unauthorized"},"403":{"description":"User does not have valid permissions"},"404":{"description":"Organization or invitation not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/invites":{"get":{"tags":["User"],"summary":"Invitations addressed to the user","description":"Retrieve the pending invitations sent to the email address of the authenticated user. Expired and already resolved invitations are not listed.","operationId":"get_user_invites_user_invites_get","responses":{"200":{"description":"Pending invitations","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrgInvite"},"type":"array","title":"Response Get User Invites User Invites Get"}}}},"401":{"description":"Unauthorized"}}}},"/user/invites/{token}":{"get":{"tags":["User"],"summary":"Read an invitation by its token","description":"Read the invitation carried by the link in the invitation email, so the page it opens can name the organization and the address it was sent to before the user answers it. No authentication is required: the token is the secret the invitee received, so whoever holds it already knows what the invitation says, and a visitor who is not logged in is told which address to log in with.","operationId":"get_user_invite_user_invites__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","description":"Invite token, from the invitation email","title":"Token"},"description":"Invite token, from the invitation email"}],"responses":{"200":{"description":"The invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgInvite"}}}},"404":{"description":"Invitation not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/invites/{token}/accept":{"post":{"tags":["User"],"summary":"Accept an invitation","description":"Accept an invitation by the token from the invitation email, granting the authenticated user the roles it offers and so making them a member of the Organization. The invitation must have been sent to the email address the user is authenticated as.","operationId":"accept_user_invite_user_invites__token__accept_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","description":"Invite token, from the invitation email","title":"Token"},"description":"Invite token, from the invitation email"}],"responses":{"200":{"description":"Invitation accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgInvite"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invitation not found"},"409":{"description":"The invitation cannot be accepted"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/invites/{token}/decline":{"post":{"tags":["User"],"summary":"Decline an invitation","description":"Decline an invitation, so the link stops working. Only the user the invitation was addressed to can decline it.","operationId":"decline_user_invite_user_invites__token__decline_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","description":"Invite token, from the invitation email","title":"Token"},"description":"Invite token, from the invitation email"}],"responses":{"200":{"description":"Invitation declined","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgInvite"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invitation not found"},"409":{"description":"The invitation cannot be declined"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/countries":{"get":{"tags":["Countries"],"summary":"List of countries","description":"Retrieve a list of of countries satisfying the query string","operationId":"get_countries_countries_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"Search string to match country names (fuzzy search)","default":"","title":"Search"},"description":"Search string to match country names (fuzzy search)"},{"name":"alpha_2","in":"query","required":false,"schema":{"type":"string","description":"Search string to match country alpha-2 codes","default":"","title":"Alpha 2"},"description":"Search string to match country alpha-2 codes"},{"name":"alpha_3","in":"query","required":false,"schema":{"type":"string","description":"Search string to match country alpha-3 codes","default":"","title":"Alpha 3"},"description":"Search string to match country alpha-3 codes"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Country"},"title":"Response Get Countries Countries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountStatus":{"type":"string","enum":["unspecified","unconfirmed","active","inactive","closed","waiting_list"],"title":"AccountStatus"},"ApiToken":{"properties":{"id":{"type":"string","title":"Id","description":"Token unique ID - not the key"},"key":{"type":"string","title":"Key","description":"Token key"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Token creation date"},"access_count":{"type":"integer","title":"Access Count","description":"Token usage count","default":0},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Token expiration date"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"List of tags associated with the token"},"last_access":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Access","description":"Last access timestamp"}},"type":"object","required":["id","key","created_at"],"title":"ApiToken"},"ApiTokenCreate":{"properties":{"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"List of tags associated with the token"},"ttl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl","description":"Token expiration time in seconds"}},"type":"object","title":"ApiTokenCreate"},"AspectRatio":{"type":"string","enum":["16:9","3:2","4:3","1:1","4:5","9:16"],"title":"AspectRatio","description":"The shapes a canvas can take, each written as width to height."},"BarChart":{"properties":{"aspect_ratio":{"anyOf":[{"$ref":"#/components/schemas/AspectRatio"},{"type":"null"}],"description":"Width to height the tile keeps at every width, its height following its width; when omitted the tile is as tall as the rows the layout gives it"},"full_page_on_phone":{"type":"boolean","title":"Full Page On Phone","description":"Whether a tooltip opened on a phone covers the whole page rather than opening beside what was tapped","default":false},"kind":{"type":"string","const":"bar","title":"Kind","default":"bar"},"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id","description":"Chart id, unique within the canvas"},"name":{"type":"string","maxLength":128,"title":"Name","description":"Chart title","default":""},"layer_id":{"type":"string","maxLength":64,"minLength":1,"title":"Layer Id","description":"Id of the layer the chart reads"},"level":{"anyOf":[{"type":"integer","maximum":4.0,"minimum":0.0},{"type":"null"}],"title":"Level","description":"Boundary level of the regions ranked; the deepest level the rows hold when omitted"},"all_levels":{"type":"boolean","title":"All Levels","description":"Rank the regions of every level together, ignoring `level`","default":false},"column":{"type":"string","maxLength":64,"title":"Column","description":"Numeric column of the layer's dataset the bars plot and rank by; the layer's `value_column` when empty","default":""},"top":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Top","description":"Regions shown","default":20},"sort":{"$ref":"#/components/schemas/ChartSort","description":"Whether the highest or the lowest come first","default":"desc"}},"type":"object","required":["id","layer_id"],"title":"BarChart","description":"The regions of a layer ranked by its value at the canvas time step.\n\nReads the dataset, the value column and the palette of the layer it\nnames, so the bars are coloured as the map paints the same regions. It\ncan rank them by another column of the dataset instead, keeping the\ncolours of the map."},"Basemap":{"type":"string","enum":["satellite","terrain"],"title":"Basemap","description":"A basemap a viewer can switch a map to, from the streets it draws by\ndefault."},"Body_upload_org_logo_orgs__org_id_or_name__logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"The image to use as logo"}},"type":"object","required":["file"],"title":"Body_upload_org_logo_orgs__org_id_or_name__logo_post"},"Boundary":{"type":"string","enum":["unspecified","world_regions","nuts","comuni"],"title":"Boundary","description":"Boundary set a tabular dataset joins onto.\n\n``WORLD_REGIONS`` covers every level of the world regions: countries (ISO\n3166-1 alpha-2) and their first-level subdivisions (ISO 3166-2), so one\njoin column can mix both."},"BoundarySource-Input":{"properties":{"type":{"type":"string","const":"boundary","title":"Type","default":"boundary"},"boundary":{"$ref":"#/components/schemas/Boundary","description":"Boundary set to draw"},"level":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":0.0},{"type":"null"}],"title":"Level","description":"NUTS level; NUTS boundaries only"}},"type":"object","required":["boundary"],"title":"BoundarySource","description":"A boundary set of the shared catalog, served as vector tiles."},"Canvas":{"properties":{"id":{"type":"string","title":"Id","description":"Canvas UUID"},"org_id":{"type":"string","title":"Org Id","description":"Owning organization UUID"},"name":{"type":"string","title":"Name","description":"Canvas name"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"public":{"type":"boolean","title":"Public","description":"Whether anyone holding the id can read it","default":false},"config":{"$ref":"#/components/schemas/CanvasConfig-Output","description":"Composition"},"org_name":{"type":"string","title":"Org Name","description":"Short name of the owning organization, the slug its pages are addressed by; filled by the public endpoints","default":""},"palettes":{"additionalProperties":{"$ref":"#/components/schemas/PaletteColors"},"type":"object","title":"Palettes","description":"The organization palettes the layers colour with, keyed by id, so the canvas is drawn without another request"},"created":{"type":"string","format":"date-time","title":"Created","description":"Creation timestamp"},"updated":{"type":"string","format":"date-time","title":"Updated","description":"Last modification timestamp"},"user_id":{"type":"string","title":"User Id","description":"Creating user UUID"}},"type":"object","required":["id","org_id","name","config","created","updated","user_id"],"title":"Canvas","description":"A saved map composition (see ``docs/canvases.md``)."},"CanvasConfig-Input":{"properties":{"timeline":{"anyOf":[{"$ref":"#/components/schemas/Timeline"},{"type":"null"}],"description":"Shared clock; omitted when nothing is animated"},"layers":{"items":{"$ref":"#/components/schemas/CanvasLayer-Input"},"type":"array","title":"Layers","description":"Layers, drawn bottom to top"},"tooltip_style":{"$ref":"#/components/schemas/TooltipStyle","description":"How the tooltips of every layer look"},"visualizations":{"items":{"oneOf":[{"$ref":"#/components/schemas/MapVisualization"},{"$ref":"#/components/schemas/BarChart"},{"$ref":"#/components/schemas/TimeseriesChart"},{"$ref":"#/components/schemas/TilegramChart"}],"discriminator":{"propertyName":"kind","mapping":{"bar":"#/components/schemas/BarChart","map":"#/components/schemas/MapVisualization","tilegram":"#/components/schemas/TilegramChart","timeseries":"#/components/schemas/TimeseriesChart"}}},"type":"array","maxItems":16,"title":"Visualizations","description":"Maps and charts drawn from the layers: a map draws every layer, a chart reads one"},"layout":{"items":{"$ref":"#/components/schemas/LayoutItem"},"type":"array","maxItems":16,"title":"Layout","description":"Where the visualizations sit on the canvas grid; the app places a visualization missing from it"}},"type":"object","title":"CanvasConfig","description":"Everything needed to redraw the canvas.\n\nThe envelope is validated so a stored canvas always names sources the API\ncan resolve, while the per-layer ``style`` stays an open object owned by\nthe renderer."},"CanvasConfig-Output":{"properties":{"timeline":{"anyOf":[{"$ref":"#/components/schemas/Timeline"},{"type":"null"}],"description":"Shared clock; omitted when nothing is animated"},"layers":{"items":{"$ref":"#/components/schemas/CanvasLayer-Output"},"type":"array","title":"Layers","description":"Layers, drawn bottom to top"},"tooltip_style":{"$ref":"#/components/schemas/TooltipStyle","description":"How the tooltips of every layer look"},"visualizations":{"items":{"oneOf":[{"$ref":"#/components/schemas/MapVisualization"},{"$ref":"#/components/schemas/BarChart"},{"$ref":"#/components/schemas/TimeseriesChart"},{"$ref":"#/components/schemas/TilegramChart"}],"discriminator":{"propertyName":"kind","mapping":{"bar":"#/components/schemas/BarChart","map":"#/components/schemas/MapVisualization","tilegram":"#/components/schemas/TilegramChart","timeseries":"#/components/schemas/TimeseriesChart"}}},"type":"array","maxItems":16,"title":"Visualizations","description":"Maps and charts drawn from the layers: a map draws every layer, a chart reads one"},"layout":{"items":{"$ref":"#/components/schemas/LayoutItem"},"type":"array","maxItems":16,"title":"Layout","description":"Where the visualizations sit on the canvas grid; the app places a visualization missing from it"}},"type":"object","title":"CanvasConfig","description":"Everything needed to redraw the canvas.\n\nThe envelope is validated so a stored canvas always names sources the API\ncan resolve, while the per-layer ``style`` stays an open object owned by\nthe renderer."},"CanvasCreate":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name","description":"Canvas name"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"public":{"type":"boolean","title":"Public","description":"Whether anyone holding the canvas id can read it, without belonging to the owning organization","default":false},"config":{"$ref":"#/components/schemas/CanvasConfig-Input","description":"Composition; an empty canvas when omitted"}},"type":"object","required":["name"],"title":"CanvasCreate","description":"Payload to create a canvas."},"CanvasLayer-Input":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id","description":"Layer id, unique within the canvas"},"name":{"type":"string","maxLength":128,"title":"Name","description":"Layer name shown in the legend","default":""},"kind":{"$ref":"#/components/schemas/LayerKind","description":"How the layer draws its data"},"source":{"oneOf":[{"$ref":"#/components/schemas/DatasetSource"},{"$ref":"#/components/schemas/BoundarySource-Input"},{"$ref":"#/components/schemas/IndicatorSource"},{"$ref":"#/components/schemas/ElevationSource"}],"title":"Source","description":"Where the layer reads its data from","discriminator":{"propertyName":"type","mapping":{"boundary":"#/components/schemas/BoundarySource-Input","dataset":"#/components/schemas/DatasetSource","elevation":"#/components/schemas/ElevationSource","indicator":"#/components/schemas/IndicatorSource"}}},"value_column":{"type":"string","maxLength":64,"title":"Value Column","description":"Column driving the colour or size scale; the layer is drawn with a flat style when empty","default":""},"per_area":{"type":"boolean","title":"Per Area","description":"Draw `value_column` divided by the area of each region in km², a density, rather than as it is; read for a dataset joined to world regions only, whose rows carry the area","default":false},"time_column":{"type":"string","maxLength":64,"title":"Time Column","description":"Column carrying the time step; the layer is filtered to the canvas timeline when set, and static when empty","default":""},"visible":{"type":"boolean","title":"Visible","description":"Whether the layer is drawn","default":true},"opacity":{"type":"number","title":"Opacity","description":"Layer opacity","default":"1"},"style":{"additionalProperties":true,"type":"object","title":"Style","description":"Paint and layout properties, interpreted by the map renderer and opaque to the API"},"palette":{"$ref":"#/components/schemas/LayerPalette","description":"The colours the layer draws its values in"},"tooltip":{"$ref":"#/components/schemas/CanvasTooltip","description":"What the layer shows about a feature under the pointer"}},"type":"object","required":["id","kind","source"],"title":"CanvasLayer","description":"One layer of a canvas: where the data comes from and how it is drawn."},"CanvasLayer-Output":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id","description":"Layer id, unique within the canvas"},"name":{"type":"string","maxLength":128,"title":"Name","description":"Layer name shown in the legend","default":""},"kind":{"$ref":"#/components/schemas/LayerKind","description":"How the layer draws its data"},"source":{"oneOf":[{"$ref":"#/components/schemas/DatasetSource"},{"$ref":"#/components/schemas/fluid_apps__geografica__models__canvases__BoundarySource"},{"$ref":"#/components/schemas/IndicatorSource"},{"$ref":"#/components/schemas/ElevationSource"}],"title":"Source","description":"Where the layer reads its data from","discriminator":{"propertyName":"type","mapping":{"boundary":"#/components/schemas/fluid_apps__geografica__models__canvases__BoundarySource","dataset":"#/components/schemas/DatasetSource","elevation":"#/components/schemas/ElevationSource","indicator":"#/components/schemas/IndicatorSource"}}},"value_column":{"type":"string","maxLength":64,"title":"Value Column","description":"Column driving the colour or size scale; the layer is drawn with a flat style when empty","default":""},"per_area":{"type":"boolean","title":"Per Area","description":"Draw `value_column` divided by the area of each region in km², a density, rather than as it is; read for a dataset joined to world regions only, whose rows carry the area","default":false},"time_column":{"type":"string","maxLength":64,"title":"Time Column","description":"Column carrying the time step; the layer is filtered to the canvas timeline when set, and static when empty","default":""},"visible":{"type":"boolean","title":"Visible","description":"Whether the layer is drawn","default":true},"opacity":{"type":"number","title":"Opacity","description":"Layer opacity","default":"1"},"style":{"additionalProperties":true,"type":"object","title":"Style","description":"Paint and layout properties, interpreted by the map renderer and opaque to the API"},"palette":{"$ref":"#/components/schemas/LayerPalette","description":"The colours the layer draws its values in"},"tooltip":{"$ref":"#/components/schemas/CanvasTooltip","description":"What the layer shows about a feature under the pointer"}},"type":"object","required":["id","kind","source"],"title":"CanvasLayer","description":"One layer of a canvas: where the data comes from and how it is drawn."},"CanvasTooltip":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether the layer shows a tooltip","default":true},"trigger":{"$ref":"#/components/schemas/TooltipTrigger","description":"Whether the tooltip follows the pointer or opens on click","default":"hover"},"title_column":{"type":"string","maxLength":64,"title":"Title Column","description":"Column whose value heads the tooltip; the layer name, or the region name of a choropleth, when empty","default":""},"fields":{"items":{"$ref":"#/components/schemas/TooltipField"},"type":"array","maxItems":32,"title":"Fields","description":"Columns listed, in order; when empty the layer's value column is listed, or every column when the layer has none"}},"type":"object","title":"CanvasTooltip","description":"What a layer shows about the feature under the pointer, or clicked.\n\nRead by the map renderer like ``style``, but typed, so the settings a\ntooltip takes are documented and validated rather than passed through."},"CanvasUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name","description":"Canvas name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public","description":"Whether the canvas is readable by anyone"},"config":{"anyOf":[{"$ref":"#/components/schemas/CanvasConfig-Input"},{"type":"null"}],"description":"Composition, replaced whole; layers are not merged"}},"type":"object","title":"CanvasUpdate","description":"Payload to update a canvas. Omitted fields are left untouched."},"ChartSort":{"type":"string","enum":["desc","asc"],"title":"ChartSort","description":"Whether a ranking puts the highest or the lowest first."},"ColorScale":{"type":"string","enum":["linear","sqrt","log","quantile"],"title":"ColorScale","description":"How the values of a numeric column spread over the colours."},"Continent":{"type":"string","enum":["unspecified","africa","asia","europe","latin_america_and_caribbean","northern_america","oceania","antarctica"],"title":"Continent","description":"The part of the world a country belongs to.\n\nThese are the [UN M49 geographic regions][m49] rather than the seven\ncontinents of a school atlas, which is why the Americas appear as\n``NORTHERN_AMERICA`` and ``LATIN_AMERICA_AND_CARIBBEAN``. Stored as a\n``SmallInteger`` ordinal, so a new member is **appended**.\n\n[m49]: https://unstats.un.org/unsd/methodology/m49/"},"Country":{"properties":{"alpha_2":{"type":"string","maxLength":2,"minLength":2,"title":"Alpha 2","description":"Country alpha 2 letter code"},"alpha_3":{"type":"string","maxLength":3,"minLength":3,"title":"Alpha 3","description":"Country alpha 3 letter code"},"numeric":{"type":"string","maxLength":3,"minLength":3,"title":"Numeric","description":"Country numeric code"},"name":{"type":"string","title":"Name","description":"Country name"},"official_name":{"type":"string","title":"Official Name","description":"Country official name"}},"type":"object","required":["alpha_2","alpha_3","numeric","name","official_name"],"title":"Country"},"CreateOrgInvite":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address to invite"},"role":{"type":"string","title":"Role","description":"Id or name of the role the invitee is granted when accepting, which is what makes them a member. It must be a role of the organization sending the invite. Further roles can be granted once they have joined.","default":"member"},"message":{"type":"string","maxLength":1000,"title":"Message","description":"Optional note from the inviter, included in the email","default":""}},"type":"object","required":["email"],"title":"CreateOrgInvite"},"CreatePublicOrg":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address of the organization"},"short_name":{"type":"string","title":"Short Name","description":"Org unique short name - must be a slug"},"full_name":{"type":"string","title":"Full Name","description":"Full name of the organization","default":""},"registered_name":{"type":"string","title":"Registered Name","description":"Registered name of the organization","default":""},"registration_number":{"type":"string","title":"Registration Number","description":"Registration number of the organization","default":""},"status":{"$ref":"#/components/schemas/AccountStatus","default":"active"},"country":{"type":"string","title":"Country","description":"Country of the organization as an ISO 3166-1 alpha-2 code","default":""},"address":{"type":"string","title":"Address","description":"Address of the organization","default":""},"website":{"type":"string","title":"Website","description":"Website of the organization","default":""},"public":{"type":"boolean","title":"Public","description":"When true the organization and the resources it shares are visible to users who are not members of it","default":false},"description":{"type":"string","title":"Description","description":"Description of the organization","default":""}},"type":"object","required":["email","short_name"],"title":"CreatePublicOrg"},"Currency":{"type":"string","enum":["AED","ALL","AMD","ARS","AUD","AZN","BAM","BDT","BGN","BHD","BMD","BOB","BRL","BYN","CAD","CHF","CLP","CNY","COP","CRC","CZK","DKK","DOP","EGP","EUR","GBP","GEL","GTQ","HKD","HNL","HUF","IDR","ILS","INR","IQD","ISK","JMD","JOD","JPY","KRW","KWD","KZT","LKR","MDL","MKD","MXN","MYR","NGN","NIO","NOK","NZD","OMR","PEN","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","SAR","SEK","SGD","THB","TRY","TTD","TWD","UAH","USD","UYU","VES","VND","XAG","XAU","XBT","XDR","ZAR"],"title":"Currency"},"Dataset":{"properties":{"id":{"type":"string","title":"Id","description":"Dataset UUID"},"org_id":{"type":"string","title":"Org Id","description":"Owning organization UUID"},"name":{"type":"string","title":"Name","description":"Dataset name"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"public":{"type":"boolean","title":"Public","description":"Whether anyone holding the id can read it","default":false},"attribution":{"type":"string","title":"Attribution","description":"Credit line for the data, shown wherever the dataset is published; carries the terms themselves when the licence is 'other'","default":""},"license":{"$ref":"#/components/schemas/DatasetLicense","description":"Licence the data is published under","default":"unspecified"},"source_url":{"type":"string","title":"Source Url","description":"Where a reader can check the original source; the page to credit, not the URL the data is fetched from","default":""},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 code of the country the data covers, empty when it covers no single country","default":""},"reference_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Date","description":"Day the data refers to: its rows are matched and drawn on the regions as they were that day. None for today"},"kind":{"$ref":"#/components/schemas/DatasetKind","description":"'geographic' or 'tabular'; set by the ingest task","default":"unspecified"},"status":{"$ref":"#/components/schemas/DatasetStatus","description":"Ingest lifecycle status"},"geometry_type":{"$ref":"#/components/schemas/GeometryType","description":"Geometry of a geographic dataset; set by the ingest task","default":"unspecified"},"boundary":{"$ref":"#/components/schemas/Boundary","description":"Boundary set a tabular dataset joins onto","default":"unspecified"},"join_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Join Column","description":"Column of the dataset joining rows onto the boundary set"},"frequency":{"$ref":"#/components/schemas/DatasetFrequency","description":"Observation frequency of a time series; 'unspecified' when the dataset has no time dimension. Records carry the start of the period they cover, so an annual value for 2015 has time 2015-01-01","default":"unspecified"},"feature_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Count","description":"Features/rows loaded at ingest"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"[west, south, east, north] in WGS84"},"attributes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Attributes","description":"Per-column profile computed at ingest"},"created":{"type":"string","format":"date-time","title":"Created","description":"Creation timestamp"},"updated":{"type":"string","format":"date-time","title":"Updated","description":"Last modification timestamp"},"last_refreshed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Refreshed","description":"Last successful ingest"},"org_name":{"type":"string","title":"Org Name","description":"Short name of the owning organization, the slug its pages are addressed by; filled by the public listings","default":""},"user_id":{"type":"string","title":"User Id","description":"Creating user UUID"},"source_config":{"additionalProperties":true,"type":"object","title":"Source Config","description":"Acquisition configuration"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message","description":"Human-readable ingest failure"},"unmatched_codes":{"items":{"type":"string"},"type":"array","title":"Unmatched Codes","description":"Codes of the source that match no region, sorted: their rows are left out of the dataset. Replaced by every ingest"},"source_type":{"$ref":"#/components/schemas/DatasetSourceType","description":"How the data is acquired, derived from source_config","readOnly":true}},"type":"object","required":["id","org_id","name","status","created","updated","user_id","source_config","source_type"],"title":"Dataset","description":"A user-supplied dataset (see ``docs/user-datasets.md``)."},"DatasetCreate":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name","description":"Dataset name"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"filename":{"type":"string","title":"Filename","description":"Name of the file to upload; the response carries the presigned S3 POST to upload it","default":""},"endpoint":{"anyOf":[{"$ref":"#/components/schemas/EndpointSource"},{"type":"null"}],"description":"Remote endpoint the ingest task fetches the data from"},"public":{"type":"boolean","title":"Public","description":"Whether anyone holding the dataset id can read it, without belonging to the owning organization","default":false},"attribution":{"type":"string","title":"Attribution","description":"Credit line for the data","default":""},"license":{"$ref":"#/components/schemas/DatasetLicense","description":"Licence the data is published under","default":"unspecified"},"source_url":{"type":"string","title":"Source Url","description":"Https link to the original source, to credit it","default":""},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 code of the country the data covers, for the rows to be matched on the other codes of its regions too","default":""},"reference_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Date","description":"Day the data refers to, for the rows to be matched and drawn on the regions as they were that day; today when omitted"}},"type":"object","required":["name"],"title":"DatasetCreate","description":"Payload to create a dataset.\n\nExactly one of ``filename`` (the data will be uploaded to S3 via the\nreturned presigned POST) or ``endpoint`` (the data is fetched by the\ningest task) must be provided."},"DatasetCreated":{"properties":{"id":{"type":"string","title":"Id","description":"Dataset UUID"},"org_id":{"type":"string","title":"Org Id","description":"Owning organization UUID"},"name":{"type":"string","title":"Name","description":"Dataset name"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"public":{"type":"boolean","title":"Public","description":"Whether anyone holding the id can read it","default":false},"attribution":{"type":"string","title":"Attribution","description":"Credit line for the data, shown wherever the dataset is published; carries the terms themselves when the licence is 'other'","default":""},"license":{"$ref":"#/components/schemas/DatasetLicense","description":"Licence the data is published under","default":"unspecified"},"source_url":{"type":"string","title":"Source Url","description":"Where a reader can check the original source; the page to credit, not the URL the data is fetched from","default":""},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 code of the country the data covers, empty when it covers no single country","default":""},"reference_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Date","description":"Day the data refers to: its rows are matched and drawn on the regions as they were that day. None for today"},"kind":{"$ref":"#/components/schemas/DatasetKind","description":"'geographic' or 'tabular'; set by the ingest task","default":"unspecified"},"status":{"$ref":"#/components/schemas/DatasetStatus","description":"Ingest lifecycle status"},"geometry_type":{"$ref":"#/components/schemas/GeometryType","description":"Geometry of a geographic dataset; set by the ingest task","default":"unspecified"},"boundary":{"$ref":"#/components/schemas/Boundary","description":"Boundary set a tabular dataset joins onto","default":"unspecified"},"join_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Join Column","description":"Column of the dataset joining rows onto the boundary set"},"frequency":{"$ref":"#/components/schemas/DatasetFrequency","description":"Observation frequency of a time series; 'unspecified' when the dataset has no time dimension. Records carry the start of the period they cover, so an annual value for 2015 has time 2015-01-01","default":"unspecified"},"feature_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Count","description":"Features/rows loaded at ingest"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"[west, south, east, north] in WGS84"},"attributes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Attributes","description":"Per-column profile computed at ingest"},"created":{"type":"string","format":"date-time","title":"Created","description":"Creation timestamp"},"updated":{"type":"string","format":"date-time","title":"Updated","description":"Last modification timestamp"},"last_refreshed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Refreshed","description":"Last successful ingest"},"org_name":{"type":"string","title":"Org Name","description":"Short name of the owning organization, the slug its pages are addressed by; filled by the public listings","default":""},"user_id":{"type":"string","title":"User Id","description":"Creating user UUID"},"source_config":{"additionalProperties":true,"type":"object","title":"Source Config","description":"Acquisition configuration"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message","description":"Human-readable ingest failure"},"unmatched_codes":{"items":{"type":"string"},"type":"array","title":"Unmatched Codes","description":"Codes of the source that match no region, sorted: their rows are left out of the dataset. Replaced by every ingest"},"upload":{"anyOf":[{"$ref":"#/components/schemas/DatasetUpload"},{"type":"null"}],"description":"Presigned S3 POST to upload the file; upload sources only"},"source_type":{"$ref":"#/components/schemas/DatasetSourceType","description":"How the data is acquired, derived from source_config","readOnly":true}},"type":"object","required":["id","org_id","name","status","created","updated","user_id","source_config","source_type"],"title":"DatasetCreated","description":"A freshly created dataset, with the upload instructions when needed."},"DatasetFrequency":{"type":"string","enum":["unspecified","annual","quarterly","monthly","weekly","daily"],"title":"DatasetFrequency","description":"How often a time-series dataset observes each boundary.\n\n``UNSPECIFIED`` is a dataset with no time dimension at all: its records\ncarry no ``time`` and there is one of them per boundary. For every other\nfrequency a record is one observation, keyed on the boundary and the\n**start** of the period it covers, so a yearly value for 2015 is stored\nat ``2015-01-01`` and the frequency is what says the date stands for the\nwhole year rather than that one day."},"DatasetKind":{"type":"string","enum":["unspecified","geographic","tabular"],"title":"DatasetKind","description":"What the dataset carries, detected by the ingest task."},"DatasetLicense":{"type":"string","enum":["unspecified","CC0-1.0","CC-BY-4.0","CC-BY-SA-4.0","CC-BY-3.0","CC-BY-NC-4.0","PDDL-1.0","ODC-By-1.0","ODbL-1.0","OGL-UK-3.0","IODL-2.0","proprietary","other","CC-BY-2.5","CC-BY-3.0-IGO","CC-BY-SA-2.0","CC-BY-SA-3.0","DL-DE-BY-2.0","public-domain"],"title":"DatasetLicense","description":"Licence the dataset content is published under.\n\nThe member value is the identifier as the rest of the world writes it\n(the SPDX one wherever it exists), so it travels unchanged into the\npublic API and into any catalogue reading it, rather than a spelling\nonly we understand. :attr:`label` and :attr:`url` carry the full name\nand the legal text to link it to.\n\nOnly the licences we have actually met are members; anything else is\n``OTHER``, with the terms spelled out in the dataset ``attribution``.\nLike every ``ProtoEnum`` the stored value is the ordinal, so a new\nlicence is **appended** and never inserted."},"DatasetRow":{"additionalProperties":true,"type":"object","title":"DatasetRow","description":"One row of a dataset's data.\n\nAn open object rather than a fixed schema: the columns are whatever the\ningest task found in the source, and the dataset ``attributes`` profile\ndescribes them. A tabular row carries the boundary code it joins onto\nunder the source's own ``join_column`` name; a geographic row carries\n``feature_id`` and a GeoJSON ``geometry`` object alongside its properties.\n\nA tabular row also carries ``level``, the depth of that boundary (0 for a\ncountry), unless its code matched no boundary.\n\nA row of a time series carries ``time`` as well, the start of the period\nit observes, so one boundary appears once per period rather than once."},"DatasetSource":{"properties":{"type":{"type":"string","const":"dataset","title":"Type","default":"dataset"},"dataset_id":{"type":"string","title":"Dataset Id","description":"Dataset UUID"}},"type":"object","required":["dataset_id"],"title":"DatasetSource","description":"A dataset of the same organization, geographic or tabular."},"DatasetSourceType":{"type":"string","enum":["unspecified","upload","endpoint","database"],"title":"DatasetSourceType","description":"How the dataset data is acquired.\n\nNever stored: derived from the shape of ``source_config`` (``filename`` ->\nupload, ``url`` -> endpoint, ``data_source_id`` -> the catalogue of public\ndatasets, imported by that provider's own task)."},"DatasetStatus":{"type":"string","enum":["unspecified","pending","processing","ready","error"],"title":"DatasetStatus","description":"Dataset ingest lifecycle."},"DatasetUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name","description":"Dataset name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public","description":"Whether anyone holding the dataset id can read it, without belonging to the owning organization"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution","description":"Credit line for the data"},"license":{"anyOf":[{"$ref":"#/components/schemas/DatasetLicense"},{"type":"null"}],"description":"Licence the data is published under"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"Https link to the original source, to credit it"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"ISO 3166-1 alpha-2 code of the country the data covers, empty for none; it takes effect on the next ingestion"},"reference_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Date","description":"Day the data refers to, null for today; it takes effect on the next ingestion. Omitted, it is left as it is"}},"type":"object","title":"DatasetUpdate","description":"Payload to update a dataset. Omitted fields are left untouched.\n\nOnly what the organization decides about a dataset: what the data itself\ndetermines is written by the ingest task and cannot be set from outside."},"DatasetUpload":{"properties":{"url":{"type":"string","title":"Url","description":"URL to POST the multipart form to"},"fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Fields","description":"Form fields to include in the multipart POST, before the file"}},"type":"object","required":["url","fields"],"title":"DatasetUpload","description":"Presigned S3 POST for uploading the dataset file directly to S3."},"ElevationSource":{"properties":{"type":{"type":"string","const":"elevation","title":"Type","default":"elevation"},"min":{"anyOf":[{"type":"integer","maximum":9000.0,"minimum":-11000.0},{"type":"null"}],"title":"Min","description":"Lowest height drawn, in metres, negative below sea level; no lower bound when not set"},"max":{"anyOf":[{"type":"integer","maximum":9000.0,"minimum":-11000.0},{"type":"null"}],"title":"Max","description":"Highest height drawn, in metres, negative below sea level; no upper bound when not set"},"interval":{"type":"integer","maximum":2000.0,"minimum":10.0,"title":"Interval","description":"Metres between two elevation lines, read by a `line` layer; every fifth line is drawn thicker and labelled","default":100}},"type":"object","title":"ElevationSource","description":"The height of the land and the depth of the sea, from the public\nelevation tiles the renderer reads, with no data of the organization.\n\nHeights are in metres above sea level, depths negative. Lakes read at\nthe height of their surface: the tiles have no lake depths."},"EndpointSource":{"properties":{"url":{"type":"string","title":"Url","description":"HTTPS URL returning the data"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers","description":"Extra request headers, e.g. an Authorization token"}},"type":"object","required":["url"],"title":"EndpointSource","description":"Remote endpoint the ingest task fetches the dataset from."},"GeoPermission":{"type":"string","enum":["full_permission","datasets_create","datasets_read","datasets_update","datasets_delete","org_update","org_logo_update","org_members_read","org_invites_read","org_invites_create","org_invites_delete","org_roles_create","org_roles_read","org_roles_update","org_roles_delete"],"title":"GeoPermission"},"GeometryType":{"type":"string","enum":["unspecified","point","line","polygon","mixed"],"title":"GeometryType","description":"Geometry of a geographic dataset."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IndicatorSource":{"properties":{"type":{"type":"string","const":"indicator","title":"Type","default":"indicator"},"indicator":{"type":"string","title":"Indicator","description":"Indicator code of the registry"},"level":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":0.0},{"type":"null"}],"title":"Level","description":"NUTS level the values are read at"}},"type":"object","required":["indicator"],"title":"IndicatorSource","description":"A first-party indicator of the statistics registry."},"InviteStatus":{"type":"string","enum":["pending","accepted","revoked","expired"],"title":"InviteStatus","description":"Lifecycle of an invitation.\n\n``expired`` is stored rather than derived so a listing can be filtered by\nstatus in one query; a pending invite past its expiry is reported, and\nwritten back, as expired when it is read."},"LayerKind":{"type":"string","enum":["choropleth","fill","line","circle","heatmap","symbol"],"title":"LayerKind","description":"How a layer draws its data on the map."},"LayerPalette":{"properties":{"name":{"type":"string","maxLength":64,"title":"Name","description":"Palette name from the renderer's catalogue; the default for the column when empty","default":""},"reverse":{"type":"boolean","title":"Reverse","description":"Whether the colours run in the opposite order","default":false},"scale":{"$ref":"#/components/schemas/ColorScale","description":"How the values of a numeric column spread over the colours: in proportion to the value, on a square root or log of it, or in quantiles, each colour holding the same share of the regions","default":"linear"},"id":{"type":"string","title":"Id","description":"UUID of a palette of the organization; wins over the name when set","default":""},"midpoint":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Midpoint","description":"Value a diverging palette turns on: its centre colour sits there and each side darkens with the distance from it, the same on both sides; the middle of the range when not set. Only a linear scale is centred"}},"type":"object","title":"LayerPalette","description":"The colours a layer draws its values in.\n\nStored by name: the catalogue, the d3 colour schemes and the palettes an\napplication adds to them, lives in the renderer. A name the renderer does\nnot know is drawn with the default palette for the column."},"LayoutItem":{"properties":{"i":{"type":"string","maxLength":64,"minLength":1,"title":"I","description":"Id of the visualization the tile draws"},"x":{"type":"integer","exclusiveMaximum":12.0,"minimum":0.0,"title":"X","description":"Column the tile starts at"},"y":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Y","description":"Row the tile starts at"},"w":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"W","description":"Columns the tile spans"},"h":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"H","description":"Rows the tile spans"}},"type":"object","required":["i","x","y","w","h"],"title":"LayoutItem","description":"Where one visualization sits on the canvas grid, as a dashboard widget\ndoes.\n\nThe grid is ``LAYOUT_COLUMNS`` columns wide on a wide screen, and the app\nnarrows it on smaller ones."},"LegendPosition":{"type":"string","enum":["top_left","top_right","bottom_left","bottom_right"],"title":"LegendPosition","description":"The corner of a map its legend sits in."},"License":{"properties":{"id":{"$ref":"#/components/schemas/DatasetLicense","description":"Licence identifier, SPDX where one exists"},"label":{"type":"string","title":"Label","description":"Full name of the licence"},"url":{"type":"string","title":"Url","description":"Legal text of the licence, empty when there is none"}},"type":"object","required":["id","label","url"],"title":"License","description":"A licence data can be published under."},"MapCamera":{"properties":{"center":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2,"title":"Center","description":"[longitude, latitude] in WGS84","default":["0","0"]},"zoom":{"type":"number","title":"Zoom","description":"Zoom level of a map 1024 pixels wide; the renderer adjusts it to the width it draws at, so every size frames the same area","default":"2"},"bearing":{"type":"number","title":"Bearing","description":"Rotation","default":"0"},"pitch":{"type":"number","title":"Pitch","description":"Tilt","default":"0"}},"type":"object","title":"MapCamera","description":"Where a map opens: the point it is centred on, its zoom, rotation and\ntilt."},"MapProjection":{"type":"string","enum":["mercator","globe"],"title":"MapProjection","description":"How a map is drawn: flat, or as a sphere."},"MapVisualization":{"properties":{"aspect_ratio":{"anyOf":[{"$ref":"#/components/schemas/AspectRatio"},{"type":"null"}],"description":"Width to height the tile keeps at every width, its height following its width; when omitted the tile is as tall as the rows the layout gives it"},"full_page_on_phone":{"type":"boolean","title":"Full Page On Phone","description":"Whether a tooltip opened on a phone covers the whole page rather than opening beside what was tapped","default":false},"kind":{"type":"string","const":"map","title":"Kind","default":"map"},"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id","description":"Visualization id, unique within the canvas"},"name":{"type":"string","maxLength":128,"title":"Name","description":"Map title","default":""},"view":{"$ref":"#/components/schemas/MapCamera","description":"Where the map opens"},"lock_zoom_out":{"type":"boolean","title":"Lock Zoom Out","description":"Whether a viewer is kept from zooming out past the zoom of ``view``, so the map never shows more than it frames","default":false},"projection":{"$ref":"#/components/schemas/MapProjection","description":"How the map is drawn: `mercator` as a flat map, `globe` as a sphere, flattening to mercator as the viewer zooms in","default":"mercator"},"basemap":{"type":"string","maxLength":128,"title":"Basemap","description":"Basemap style id, renderer defined","default":""},"basemaps":{"items":{"$ref":"#/components/schemas/Basemap"},"type":"array","title":"Basemaps","description":"The basemaps a viewer can switch the map to, each a button on the map; none by default, so the map keeps to its streets"},"legend_position":{"$ref":"#/components/schemas/LegendPosition","description":"The corner of the map its legend sits in","default":"top_left"}},"type":"object","required":["id"],"title":"MapVisualization","description":"A map drawing every layer of the canvas, on the canvas timeline.\n\nA canvas can hold several, each opening at its own camera position."},"Nuts":{"properties":{"code":{"type":"string","title":"Code","description":"NUTS code: 2 chars (country) .. 5 chars (NUTS3)"},"level":{"type":"integer","title":"Level","description":"0=country, 1, 2, 3"},"name":{"type":"string","title":"Name","description":"Region name in the national language"},"name_latin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Latin","description":"Latin-transliterated name"},"parent_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Code","description":"Parent NUTS code; None for level 0 (country)"},"country":{"type":"string","title":"Country","description":"Eurostat country code, e.g. 'IT'"},"edition":{"$ref":"#/components/schemas/NutsEdition","description":"NUTS edition of this version, e.g. 'nuts_2021'","default":"unspecified"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date","description":"Day the NUTS edition of this version applies from"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date","description":"Day the next NUTS edition applies from; None for the current version"},"world_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"World Region","description":"Code of the world region covering the same area, if any"}},"type":"object","required":["code","level","name","country"],"title":"Nuts","description":"A region in the Eurostat NUTS hierarchy (country -> NUTS1 -> NUTS2 -> NUTS3)."},"NutsEdition":{"type":"string","enum":["unspecified","nuts_2013","nuts_2016","nuts_2021","nuts_2024","nuts_2006","nuts_2010"],"title":"NutsEdition","description":"An edition of the NUTS classification, named by the year GISCO names\nits files by. A new edition is added at the end, whatever its year, so\nthe members are not in the order of the editions."},"NutsUnit":{"properties":{"code":{"type":"string","title":"Code","description":"NUTS code, e.g. 'ITH10'"},"level":{"type":"integer","title":"Level","description":"NUTS level: 0=country, 1, 2, 3"},"name":{"type":"string","title":"Name","description":"Region name in the national language"}},"type":"object","required":["code","level","name"],"title":"NutsUnit","description":"A NUTS region covering the same area as a world region."},"OrgInvite":{"properties":{"id":{"type":"string","title":"Id","description":"Invite unique ID"},"org_id":{"type":"string","title":"Org Id","description":"Organization ID"},"org_name":{"type":"string","title":"Org Name","description":"Organization short name","default":""},"org_full_name":{"type":"string","title":"Org Full Name","description":"Organization full name","default":""},"email":{"type":"string","format":"email","title":"Email","description":"Email address invited"},"role_id":{"type":"string","title":"Role Id","description":"Id of the role granted on acceptance"},"role":{"type":"string","title":"Role","description":"Name of the role granted when the invite is accepted","default":""},"status":{"$ref":"#/components/schemas/InviteStatus","description":"Status of the invitation"},"message":{"type":"string","title":"Message","description":"Note from the inviter","default":""},"invited_by_email":{"type":"string","title":"Invited By Email","description":"Email of the user who sent the invite","default":""},"created":{"type":"string","format":"date-time","title":"Created","description":"When the invite was created"},"expires":{"type":"string","format":"date-time","title":"Expires","description":"When the invite stops being valid"},"accepted":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted","description":"When the invite was accepted"}},"type":"object","required":["id","org_id","email","role_id","status","created","expires"],"title":"OrgInvite"},"OrgMember":{"properties":{"user_id":{"type":"string","title":"User Id","description":"User ID"},"email":{"type":"string","format":"email","title":"Email","description":"User email"},"first_name":{"type":"string","title":"First Name","description":"User first name","default":""},"last_name":{"type":"string","title":"Last Name","description":"User last name","default":""},"space_id":{"type":"string","title":"Space Id","description":"Space ID","default":""},"status":{"$ref":"#/components/schemas/AccountStatus","description":"Status of the user account","default":"unspecified"},"org_id":{"type":"string","title":"Org Id","description":"Organization ID","default":""},"org_name":{"type":"string","title":"Org Name","description":"Organization short name","default":""},"org_full_name":{"type":"string","title":"Org Full Name","description":"Organization full name","default":""},"org_email":{"type":"string","format":"email","title":"Org Email","description":"Organization email address","default":""},"roles":{"items":{"type":"string"},"type":"array","title":"Roles","description":"List of roles"}},"type":"object","required":["user_id","email"],"title":"OrgMember"},"OrgRoleNamedPermissions_GeoPermission_":{"properties":{"description":{"type":"string","maxLength":256,"title":"Description","description":"Role description","default":""},"permissions":{"items":{"$ref":"#/components/schemas/GeoPermission"},"type":"array","title":"Permissions","description":"List of permissions for this role"},"name":{"type":"string","maxLength":32,"title":"Name","description":"Role name - must be a slug, unique within the organization"},"id":{"type":"string","title":"Id","description":"Role unique ID"},"org_id":{"type":"string","title":"Org Id","description":"Organization ID"},"members":{"type":"integer","title":"Members","description":"Number of organization members with this role","default":0}},"type":"object","required":["name","id","org_id"],"title":"OrgRoleNamedPermissions[GeoPermission]"},"Palette":{"properties":{"name":{"type":"string","title":"Name","description":"Palette name"},"kind":{"$ref":"#/components/schemas/PaletteKind","description":"What the colours encode"},"colors":{"items":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"type":"array","title":"Colors","description":"Colours as #rrggbb: a fixed list for a categorical palette, stops blended through for a sequential or diverging one"},"id":{"type":"string","title":"Id","description":"Palette UUID"},"org_id":{"type":"string","title":"Org Id","description":"Owning organization UUID"},"user_id":{"type":"string","title":"User Id","description":"Creating user UUID"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"created":{"type":"string","format":"date-time","title":"Created","description":"Creation timestamp"},"updated":{"type":"string","format":"date-time","title":"Updated","description":"Last modification timestamp"}},"type":"object","required":["name","kind","colors","id","org_id","user_id","created","updated"],"title":"Palette","description":"A colour palette of an organization (see ``docs/palettes.md``)."},"PaletteColors":{"properties":{"name":{"type":"string","title":"Name","description":"Palette name"},"kind":{"$ref":"#/components/schemas/PaletteKind","description":"What the colours encode"},"colors":{"items":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"type":"array","title":"Colors","description":"Colours as #rrggbb: a fixed list for a categorical palette, stops blended through for a sequential or diverging one"}},"type":"object","required":["name","kind","colors"],"title":"PaletteColors","description":"What drawing with a palette needs: its kind and its colours."},"PaletteCreate":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name","description":"Palette name, unique within the organization"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"kind":{"$ref":"#/components/schemas/PaletteKind","description":"What the colours encode"},"colors":{"items":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"type":"array","title":"Colors","description":"Colours as #rrggbb: 2 to 24 for a categorical palette, 2 to 9 stops for a sequential one and 3 to 9 for a diverging one"}},"type":"object","required":["name","kind","colors"],"title":"PaletteCreate","description":"Payload to create a palette."},"PaletteKind":{"type":"string","enum":["unspecified","categorical","sequential","diverging"],"title":"PaletteKind","description":"What the colours of a palette encode.\n\n``categorical`` colours tell categories apart and are used as a fixed\nlist, in order. ``sequential`` colours run from low to high values and\n``diverging`` ones either side of a midpoint; both are stops the renderer\nblends through."},"PaletteUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Name","description":"Palette name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description"},"kind":{"anyOf":[{"$ref":"#/components/schemas/PaletteKind"},{"type":"null"}],"description":"What the colours encode"},"colors":{"anyOf":[{"items":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"type":"array"},{"type":"null"}],"title":"Colors","description":"Colours as #rrggbb, replaced whole"}},"type":"object","title":"PaletteUpdate","description":"Payload to update a palette. Omitted fields are left untouched.\n\nThe kind and the colours are sent together or not at all: how many colours\na palette takes depends on its kind, so neither can be checked alone."},"PoiCategory":{"properties":{"category":{"type":"string","title":"Category","description":"Category, as key:value"},"key":{"type":"string","title":"Key","description":"Tag key of the category"},"value":{"type":"string","title":"Value","description":"Tag value of the category"},"count":{"type":"integer","title":"Count","description":"Points in the category"},"min_zoom":{"type":"integer","title":"Min Zoom","description":"Lowest zoom level at which points of the category are drawn"}},"type":"object","required":["category","key","value","count","min_zoom"],"title":"PoiCategory","description":"The points of interest of one category, e.g. amenity:school."},"PoiKey":{"properties":{"key":{"type":"string","title":"Key","description":"Tag key"},"count":{"type":"integer","title":"Count","description":"Points with the key"},"values":{"type":"integer","title":"Values","description":"Distinct values of the key"}},"type":"object","required":["key","count","values"],"title":"PoiKey","description":"The points of interest of one tag key, e.g. amenity."},"PoiSource":{"properties":{"id":{"type":"integer","title":"Id","description":"Source ID"},"name":{"type":"string","title":"Name","description":"Extract name, e.g. europe/italy"},"url":{"type":"string","title":"Url","description":"URL the source was imported from"},"release":{"type":"string","title":"Release","description":"Release of the extract that was imported"},"attribution":{"type":"string","title":"Attribution","description":"Credit line shown with the points"},"imported":{"type":"string","format":"date-time","title":"Imported","description":"When the source was last imported"},"count":{"type":"integer","title":"Count","description":"Points of interest of the source"},"categories":{"type":"integer","title":"Categories","description":"Categories with at least one point"}},"type":"object","required":["id","name","url","release","attribution","imported","count","categories"],"title":"PoiSource","description":"An imported extract and what it holds."},"PublicCanvas":{"properties":{"id":{"type":"string","title":"Id","description":"Canvas UUID"},"org_id":{"type":"string","title":"Org Id","description":"Owning organization UUID"},"name":{"type":"string","title":"Name","description":"Canvas name"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"public":{"type":"boolean","title":"Public","description":"Whether anyone holding the id can read it","default":false},"config":{"$ref":"#/components/schemas/CanvasConfig-Output","description":"Composition"},"org_name":{"type":"string","title":"Org Name","description":"Short name of the owning organization, the slug its pages are addressed by; filled by the public endpoints","default":""},"palettes":{"additionalProperties":{"$ref":"#/components/schemas/PaletteColors"},"type":"object","title":"Palettes","description":"The organization palettes the layers colour with, keyed by id, so the canvas is drawn without another request"},"created":{"type":"string","format":"date-time","title":"Created","description":"Creation timestamp"},"updated":{"type":"string","format":"date-time","title":"Updated","description":"Last modification timestamp"}},"type":"object","required":["id","org_id","name","config","created","updated"],"title":"PublicCanvas","description":"A canvas as it is served to callers who are not members of its\norganization.\n\nEverything a published canvas shows of itself. :class:`Canvas` adds the\nuser who created it, which is internal to the organization."},"PublicDataset":{"properties":{"id":{"type":"string","title":"Id","description":"Dataset UUID"},"org_id":{"type":"string","title":"Org Id","description":"Owning organization UUID"},"name":{"type":"string","title":"Name","description":"Dataset name"},"description":{"type":"string","title":"Description","description":"Optional description","default":""},"public":{"type":"boolean","title":"Public","description":"Whether anyone holding the id can read it","default":false},"attribution":{"type":"string","title":"Attribution","description":"Credit line for the data, shown wherever the dataset is published; carries the terms themselves when the licence is 'other'","default":""},"license":{"$ref":"#/components/schemas/DatasetLicense","description":"Licence the data is published under","default":"unspecified"},"source_url":{"type":"string","title":"Source Url","description":"Where a reader can check the original source; the page to credit, not the URL the data is fetched from","default":""},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 code of the country the data covers, empty when it covers no single country","default":""},"reference_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Date","description":"Day the data refers to: its rows are matched and drawn on the regions as they were that day. None for today"},"kind":{"$ref":"#/components/schemas/DatasetKind","description":"'geographic' or 'tabular'; set by the ingest task","default":"unspecified"},"status":{"$ref":"#/components/schemas/DatasetStatus","description":"Ingest lifecycle status"},"geometry_type":{"$ref":"#/components/schemas/GeometryType","description":"Geometry of a geographic dataset; set by the ingest task","default":"unspecified"},"boundary":{"$ref":"#/components/schemas/Boundary","description":"Boundary set a tabular dataset joins onto","default":"unspecified"},"join_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Join Column","description":"Column of the dataset joining rows onto the boundary set"},"frequency":{"$ref":"#/components/schemas/DatasetFrequency","description":"Observation frequency of a time series; 'unspecified' when the dataset has no time dimension. Records carry the start of the period they cover, so an annual value for 2015 has time 2015-01-01","default":"unspecified"},"feature_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Count","description":"Features/rows loaded at ingest"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"[west, south, east, north] in WGS84"},"attributes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Attributes","description":"Per-column profile computed at ingest"},"created":{"type":"string","format":"date-time","title":"Created","description":"Creation timestamp"},"updated":{"type":"string","format":"date-time","title":"Updated","description":"Last modification timestamp"},"last_refreshed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Refreshed","description":"Last successful ingest"},"org_name":{"type":"string","title":"Org Name","description":"Short name of the owning organization, the slug its pages are addressed by; filled by the public listings","default":""}},"type":"object","required":["id","org_id","name","status","created","updated"],"title":"PublicDataset","description":"A dataset as it is served to callers who are not members of its\norganization.\n\nEverything a published dataset shows of itself. :class:`Dataset` adds what\nstays inside the organization: ``source_config`` can carry the credentials\nthe source is fetched with, and neither the user who created the dataset\nnor the reason an ingest failed is anybody else's business."},"PublicOrg":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address of the organization"},"short_name":{"type":"string","title":"Short Name","description":"Org unique short name - must be a slug"},"full_name":{"type":"string","title":"Full Name","description":"Full name of the organization","default":""},"registered_name":{"type":"string","title":"Registered Name","description":"Registered name of the organization","default":""},"registration_number":{"type":"string","title":"Registration Number","description":"Registration number of the organization","default":""},"status":{"$ref":"#/components/schemas/AccountStatus","default":"active"},"country":{"type":"string","title":"Country","description":"Country of the organization as an ISO 3166-1 alpha-2 code","default":""},"address":{"type":"string","title":"Address","description":"Address of the organization","default":""},"website":{"type":"string","title":"Website","description":"Website of the organization","default":""},"id":{"type":"string","title":"Id"},"created":{"type":"string","format":"date-time","title":"Created"},"additional_info":{"additionalProperties":true,"type":"object","title":"Additional Info"},"logo_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Logo Id","description":"Id of the asset holding the organization logo"},"public":{"type":"boolean","title":"Public","description":"When true the organization and the resources it shares are visible to users who are not members of it","default":false},"description":{"type":"string","title":"Description","description":"Description of the organization","default":""}},"type":"object","required":["email","short_name","id","created"],"title":"PublicOrg"},"RegionType":{"type":"string","enum":["country","state","province","region","territory","prefecture","oblast","district","canton","other","department","county","municipality","governorate","collectivity","nation","unitary_authority","borough","council_area","ward"],"title":"RegionType","description":"The administrative type of a world region.\n\nStored as a ``SmallInteger`` ordinal (``int_value``) in the database.\n``COUNTRY`` is ordinal 0 (used for level-0 country rows); level-1\nsubdivisions use one of the administrative types below."},"RoleNamedPermissions_GeoPermission_":{"properties":{"description":{"type":"string","maxLength":256,"title":"Description","description":"Role description","default":""},"permissions":{"items":{"$ref":"#/components/schemas/GeoPermission"},"type":"array","title":"Permissions","description":"List of permissions for this role"},"name":{"type":"string","maxLength":32,"title":"Name","description":"Role name - must be a slug, unique within the organization"}},"type":"object","required":["name"],"title":"RoleNamedPermissions[GeoPermission]"},"Session":{"properties":{"user_agent":{"type":"string","title":"User Agent","description":"User agent of the browser","default":""},"ip":{"type":"string","title":"Ip","description":"IP address the session was opened from","default":""},"id":{"type":"string","title":"Id","description":"Session unique ID"},"created":{"type":"string","format":"date-time","title":"Created","description":"When the session was opened"},"expires":{"type":"string","format":"date-time","title":"Expires","description":"When the session expires"},"last_access":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Access","description":"When the session was last used"},"last_ip":{"type":"string","title":"Last Ip","description":"IP address the session was last used from","default":""},"current":{"type":"boolean","title":"Current","description":"The session of the request listing the sessions","default":false}},"type":"object","required":["id","created","expires"],"title":"Session"},"Tilegram":{"properties":{"column":{"type":"string","title":"Column","description":"Value column the tiles are sized by"},"per_area":{"type":"boolean","title":"Per Area","description":"Whether the values were divided by the area of their regions in km², so the tiles follow the density","default":false},"time":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Time","description":"Period the values are read at; null for a dataset with no time dimension"},"tiles":{"type":"integer","title":"Tiles","description":"Hexagons asked for. Every region with a value holds at least one, so there can be a few more cells than this"},"unit":{"type":"number","title":"Unit","description":"The value one hexagon stands for, per km² when the values are divided by the area"},"cells":{"items":{"$ref":"#/components/schemas/TilegramCell"},"type":"array","title":"Cells","description":"The hexagons, row by row from the south"}},"type":"object","required":["column","tiles","unit"],"title":"Tilegram","description":"A hexagon map of one value column of a tabular dataset, each region\ngiven hexagons in proportion to its value and laid out roughly where the\nregion is."},"TilegramCell":{"properties":{"q":{"type":"integer","title":"Q","description":"Column of the hexagon, in axial coordinates of a grid of pointy-top hexagons"},"r":{"type":"integer","title":"R","description":"Row of the hexagon, in axial coordinates of a grid of pointy-top hexagons; a row is offset by half a hexagon from the one above"},"code":{"type":"string","title":"Code","description":"Code of the region the hexagon belongs to, as the rows name it"}},"type":"object","required":["q","r","code"],"title":"TilegramCell","description":"One hexagon of a tilegram and the region it belongs to."},"TilegramChart":{"properties":{"aspect_ratio":{"anyOf":[{"$ref":"#/components/schemas/AspectRatio"},{"type":"null"}],"description":"Width to height the tile keeps at every width, its height following its width; when omitted the tile is as tall as the rows the layout gives it"},"full_page_on_phone":{"type":"boolean","title":"Full Page On Phone","description":"Whether a tooltip opened on a phone covers the whole page rather than opening beside what was tapped","default":false},"kind":{"type":"string","const":"tilegram","title":"Kind","default":"tilegram"},"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id","description":"Chart id, unique within the canvas"},"name":{"type":"string","maxLength":128,"title":"Name","description":"Chart title","default":""},"layer_id":{"type":"string","maxLength":64,"minLength":1,"title":"Layer Id","description":"Id of the layer the chart reads"},"tiles":{"type":"integer","maximum":2000.0,"minimum":20.0,"title":"Tiles","description":"Number of hexagons to lay out","default":150}},"type":"object","required":["id","layer_id"],"title":"TilegramChart","description":"A hexagon map of a layer, each region given tiles in proportion to its\nvalue at the canvas time step.\n\nReads the dataset, the value column and the palette of the layer it\nnames, so the tiles are coloured as the map paints the same regions."},"TilegramQueued":{"properties":{"status":{"type":"string","const":"queued","title":"Status","description":"The tilegram is being laid out","default":"queued"}},"type":"object","title":"TilegramQueued","description":"A tilegram being laid out: ask again for it after a few seconds."},"Timeline":{"properties":{"steps":{"items":{"type":"string"},"type":"array","title":"Steps","description":"Ordered time steps to play through, e.g. ['2019', '2020']"},"current":{"type":"string","title":"Current","description":"Step currently displayed; the first one when empty","default":""},"animate":{"type":"boolean","title":"Animate","description":"Whether the timeline plays automatically","default":false}},"type":"object","title":"Timeline","description":"Shared clock of the canvas.\n\nEvery layer naming a ``time_column`` is filtered to ``current``, so one\ntimeline drives them all rather than each layer carrying its own step."},"TimeseriesChart":{"properties":{"aspect_ratio":{"anyOf":[{"$ref":"#/components/schemas/AspectRatio"},{"type":"null"}],"description":"Width to height the tile keeps at every width, its height following its width; when omitted the tile is as tall as the rows the layout gives it"},"full_page_on_phone":{"type":"boolean","title":"Full Page On Phone","description":"Whether a tooltip opened on a phone covers the whole page rather than opening beside what was tapped","default":false},"kind":{"type":"string","const":"timeseries","title":"Kind","default":"timeseries"},"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id","description":"Chart id, unique within the canvas"},"name":{"type":"string","maxLength":128,"title":"Name","description":"Chart title","default":""},"layer_id":{"type":"string","maxLength":64,"minLength":1,"title":"Layer Id","description":"Id of the layer the chart reads"},"regions":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Regions","description":"Region codes drawn, values of the join column of the layer's dataset; the viewer can add more by clicking the map"}},"type":"object","required":["id","layer_id"],"title":"TimeseriesChart","description":"The value of a layer over every time step, one line per region."},"TooltipField":{"properties":{"column":{"type":"string","maxLength":64,"minLength":1,"title":"Column","description":"Column of the source to read"},"label":{"type":"string","maxLength":64,"title":"Label","description":"Label shown for the value; the column name when empty","default":""},"format":{"$ref":"#/components/schemas/TooltipFormat","description":"How the value is written"},"recolour":{"type":"boolean","title":"Recolour","description":"Whether a viewer can click the row in a pinned tooltip to colour the layer by this column, for a column the layer can be coloured by","default":false}},"type":"object","required":["column"],"title":"TooltipField","description":"One column a layer's tooltip lists."},"TooltipFormat":{"properties":{"style":{"$ref":"#/components/schemas/TooltipFormatStyle","description":"`auto` writes the value as stored, `number` as a localised number, `percent` as a percentage of a value from 0.0 to 1.0, `percent_100` as a percentage of a value from 0 to 100, `currency` as an amount in `currency`, `compact` abbreviated as in 1.2K, `currency_compact` as an amount in `currency` abbreviated as in €1.2K, `date` as a localised date, `image` as the picture an https link points to, `link` as a link to `url`","default":"auto"},"decimals":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Decimals","description":"Fixed number of decimals for the numeric styles; the locale default when omitted"},"scale":{"type":"integer","maximum":1000000000000.0,"minimum":1.0,"title":"Scale","description":"Multiplier the numeric styles apply to the value before writing it, for a column stored in a unit such as millions: 1000000 writes 18016189.9 as 18 trillion","default":1},"prefix":{"type":"string","maxLength":16,"title":"Prefix","description":"Text written before the value","default":""},"suffix":{"type":"string","maxLength":16,"title":"Suffix","description":"Text written after the value, a unit such as km²","default":""},"currency":{"anyOf":[{"$ref":"#/components/schemas/Currency"},{"type":"null"}],"description":"ISO 4217 currency code; required by the currency style"},"url":{"type":"string","maxLength":512,"title":"Url","description":"Https address read by the image and link styles, where `{column}` is replaced by the value of that column of the same row, as in `https://example.com/sites/{id}`; the value itself when empty","default":""}},"type":"object","title":"TooltipFormat","description":"How a tooltip writes one value."},"TooltipFormatStyle":{"type":"string","enum":["auto","number","percent","percent_100","currency","compact","currency_compact","date","image","link"],"title":"TooltipFormatStyle","description":"How a tooltip writes the value of a column."},"TooltipStyle":{"properties":{"theme":{"$ref":"#/components/schemas/TooltipTheme","description":"`auto` follows the viewer's light or dark theme, `light` and `dark` stay fixed, `accent` uses the brand colour, `custom` the two colours below","default":"auto"},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Background","description":"Background colour as #rrggbb; read by the custom theme only"},"text":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Text","description":"Text colour as #rrggbb; read by the custom theme only"}},"type":"object","title":"TooltipStyle","description":"How every tooltip of a canvas looks.\n\nOne style for the canvas rather than one per layer: a single popup lists\nevery layer under the pointer, so it can only take one look."},"TooltipTheme":{"type":"string","enum":["auto","light","dark","accent","custom"],"title":"TooltipTheme","description":"The colours of the tooltips: the viewer's, fixed, the brand's or\npicked."},"TooltipTrigger":{"type":"string","enum":["hover","click"],"title":"TooltipTrigger","description":"What opens a tooltip: the pointer over a feature, or a click on it."},"UpdatePublicOrg":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address of the organization","default":""},"full_name":{"type":"string","title":"Full Name","description":"Full name of the organization","default":""},"registered_name":{"type":"string","title":"Registered Name","description":"Registered name of the organization","default":""},"registration_number":{"type":"string","title":"Registration Number","description":"Registration number of the organization","default":""},"country":{"type":"string","title":"Country","description":"Country of the organization as an ISO 3166-1 alpha-2 code","default":""},"address":{"type":"string","title":"Address","description":"Address of the organization","default":""},"website":{"type":"string","title":"Website","description":"Website of the organization","default":""},"public":{"type":"boolean","title":"Public","description":"When true the organization and the resources it shares are visible to users who are not members of it","default":false},"description":{"type":"string","title":"Description","description":"Description of the organization","default":""}},"type":"object","title":"UpdatePublicOrg"},"UpdateRoleNamedPermissions_GeoPermission_":{"properties":{"description":{"type":"string","maxLength":256,"title":"Description","description":"Role description","default":""},"permissions":{"items":{"$ref":"#/components/schemas/GeoPermission"},"type":"array","title":"Permissions","description":"List of permissions for this role"}},"type":"object","title":"UpdateRoleNamedPermissions[GeoPermission]"},"User":{"properties":{"id":{"type":"string","title":"Id","description":"User unique ID"},"country":{"type":"string","title":"Country","description":"User country","default":""},"twofactor":{"type":"boolean","title":"Twofactor","description":"User two factor authentication","default":false},"first_name":{"type":"string","title":"First Name","description":"User first name","default":""},"last_name":{"type":"string","title":"Last Name","description":"User last name","default":""},"email":{"type":"string","format":"email","title":"Email","description":"User email"},"mobile_phone":{"type":"string","title":"Mobile Phone","description":"User mobile phone","default":""},"mail_mailing_list":{"type":"boolean","title":"Mail Mailing List","description":"The user receives the mailing list","default":true},"mail_datasets":{"type":"boolean","title":"Mail Datasets","description":"The user receives emails about their datasets","default":true},"created":{"type":"string","format":"date-time","title":"Created","description":"User creation date"},"activated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated","description":"When the account first became active"},"status":{"$ref":"#/components/schemas/AccountStatus","description":"User account status"},"reason":{"type":"string","title":"Reason","description":"Why the user asked to join the waiting list","default":""}},"type":"object","required":["id","email","created","status"],"title":"User"},"UserProfileUpdate":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User last name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"User country as an ISO 3166-1 alpha-2 code"},"mobile_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile Phone","description":"User mobile phone"},"mail_mailing_list":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mail Mailing List","description":"Receive the mailing list"},"mail_datasets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mail Datasets","description":"Receive emails about the user's datasets"}},"type":"object","title":"UserProfileUpdate","description":"The fields a user can update on their own profile"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorldRegion":{"properties":{"code":{"type":"string","title":"Code","description":"Unique region code. ISO 3166-1 alpha-2 for countries (e.g. 'US'); for subdivisions it follows whatever classification covers that country at that depth (e.g. 'FR-IDF', 'ITC'), so do not construct or parse it"},"iso":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iso","description":"ISO 3166-1 alpha-2 or ISO 3166-2 code; None when the region has none"},"level":{"type":"integer","title":"Level","description":"Depth below the country; 0 is the country"},"last_level":{"type":"integer","title":"Last Level","description":"The last level the region covers, the same as level unless it covers more than one: Brussels covers 1 to 3"},"name":{"type":"string","title":"Name","description":"Region name in the national language"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name","description":"Full English name, e.g. 'Italian Republic'"},"type":{"$ref":"#/components/schemas/RegionType","description":"Subdivision type; COUNTRY for level-0 countries","default":"country"},"parent_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Code","description":"Code of the region containing this one; None for countries"},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 country code, e.g. 'US'"},"continent":{"$ref":"#/components/schemas/Continent","description":"UN M49 region the country belongs to","default":"unspecified"},"license":{"$ref":"#/components/schemas/DatasetLicense","description":"Licence the boundary geometry is published under","default":"unspecified"},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year","description":"Year the boundary represents, not the year it was published"},"source":{"$ref":"#/components/schemas/fluid_apps__geografica__models__boundary__BoundarySource","description":"Where the boundary geometry comes from","default":"unspecified"},"flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag","description":"URL of the region flag as an SVG image; None when there is none"},"codes":{"additionalProperties":{"type":"string"},"type":"object","title":"Codes","description":"Other codes of the region, keyed on their scheme, such as the cadastral code of an Italian comune: {'belfiore': 'F205'}"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date","description":"First day of this version of the region; None when it is older than the history held"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date","description":"Day after the last day of this version of the region; None for the current version"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"[west, south, east, north] in WGS84; None when the region has no geometry. For a region crossing the antimeridian east is past 180, so the box stays the narrow one around the region"},"area_km2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area Km2","description":"Area of the geometry in km²; None when the region has no geometry"},"vertices":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vertices","description":"Number of vertices of the geometry; None when the region has no geometry"},"vertices_low":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vertices Low","description":"Number of vertices of the geometry drawn on the zoomed out map; None when the region has none"},"nuts":{"anyOf":[{"items":{"$ref":"#/components/schemas/NutsUnit"},"type":"array"},{"type":"null"}],"title":"Nuts","description":"Eurostat NUTS regions covering the same area, by level, only on the single region endpoint. More than one when a unit sits at two NUTS levels, e.g. ITH1 and ITH10 for Bolzano; empty outside the NUTS area"},"alpha3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alpha3","description":"ISO 3166-1 alpha-3 code of a country (e.g. 'USA'); None otherwise","readOnly":true},"source_url":{"type":"string","title":"Source Url","description":"Download page of the boundary source, empty when there is none","readOnly":true}},"type":"object","required":["code","level","last_level","name","country","alpha3","source_url"],"title":"WorldRegion","description":"A country or one of its subdivisions."},"WorldRegionSortBy":{"type":"string","enum":["level","area_km2"],"title":"WorldRegionSortBy","description":"The field a list of world regions is sorted by"},"fluid_apps__geografica__models__boundary__BoundarySource":{"type":"string","enum":["unspecified","cgaz","geoboundaries_country","osi_ireland","ons_uk","gisco","istat","overture","census_us"],"title":"BoundarySource","description":"Who published the geometry of a world region boundary."},"fluid_apps__geografica__models__canvases__BoundarySource":{"properties":{"type":{"type":"string","const":"boundary","title":"Type","default":"boundary"},"boundary":{"$ref":"#/components/schemas/Boundary","description":"Boundary set to draw"},"level":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":0.0},{"type":"null"}],"title":"Level","description":"NUTS level; NUTS boundaries only"}},"type":"object","required":["boundary"],"title":"BoundarySource","description":"A boundary set of the shared catalog, served as vector tiles."}}},"tags":[{"name":"World Regions","description":"The **World Regions** endpoints expose the countries of the world and their\nsubdivisions, the dimension most global datasets are reported against.\n\nEvery region carries a `code`, unique across all levels, its `level` (depth\nbelow the country, `0` being the country), `name` and optional\n`name_latin`, its administrative `type`, the `parent_code` of the region\ncontaining it (`null` for a country) and its `country`. Countries and\nsubdivisions share one namespace, so a single `code`, and a single dataset\njoin column, can address either.\n\n**A `code` is not always an ISO code.** Only level 0 is guaranteed:\n\n| Level | Code | Example |\n|-------|------|---------|\n| 0 | Always [ISO 3166-1 alpha-2](https://www.iso.org/iso-3166-country-codes.html) | `US`, `FR`, `IT` |\n| 1 and below | Depends on the country | `FR-IDF`, `ITC`, `US-CA` |\n\nBelow the country there is no worldwide standard, so a subdivision code comes\nfrom whatever classification covers that country at that depth, and the scheme\ndiffers between countries. Even [ISO 3166-2](https://www.iso.org/standard/72483.html)\nis not one tier: for Italy it covers both the regions (`IT-25` Lombardia) and\nthe provinces (`IT-MI` Milano). So do not construct a code or parse one to\ninfer a country or a level. Read the codes from these endpoints and join on\nwhat they return. `country` is always the ISO 3166-1 alpha-2 code, at every\nlevel, and is the reliable way to filter by country.\n\nRegion boundaries are not served here: they come as vector tiles from the\n**Tiles** endpoints, to be joined client-side with the values returned by the\ndataset endpoints. European regions are also served, fully coded, by the\n**NUTS** endpoints.\n\nReferences:\n\n- [ISO 3166 country codes](https://www.iso.org/iso-3166-country-codes.html) —\n  the standard behind every level 0 `code` and every `country`.\n- [ISO 3166-2](https://www.iso.org/standard/72483.html) — subdivision codes,\n  and the per-country lists of what counts as a principal subdivision.\n- [NUTS](https://ec.europa.eu/eurostat/web/nuts/overview) — the European\n  classification.\n"},{"name":"NUTS","description":"The **NUTS** endpoints expose the Eurostat\n[*Nomenclature of Territorial Units for Statistics*](https://ec.europa.eu/eurostat/web/nuts/overview)\n— the standard hierarchy used to reference sub-national regions across the EU.\n\nNUTS is a strict four-level tree\n([Eurostat background](https://ec.europa.eu/eurostat/web/nuts/background)),\nkeyed by a `code` whose length encodes its level:\n\n| Level | Code length | Example  | Meaning        |\n|-------|-------------|----------|----------------|\n| 0     | 2 chars     | `IT`     | Country        |\n| 1     | 3 chars     | `ITH`    | Macro-region   |\n| 2     | 4 chars     | `ITH4`   | Region         |\n| 3     | 5 chars     | `ITH44`  | Province       |\n\nEvery region carries its `code`, `level`, `name` (in the national language),\nan optional Latin-transliterated `name_latin`, its `parent_code` (`null` for a\ncountry) and the Eurostat `country` code. Below NUTS3 sit the municipalities,\nLocal Administrative Units\n([LAU](https://ec.europa.eu/eurostat/web/nuts/local-administrative-units)):\nthe Italian comuni are world regions of level 4, served by the **World\nRegions** endpoints. Region boundaries are not served\nhere either: they come as vector tiles from the **Tiles** endpoints, to be\njoined client-side with the values returned by the statistics endpoints.\n\nReferences:\n\n- [NUTS overview](https://ec.europa.eu/eurostat/web/nuts/overview) — what NUTS\n  is and how it is used.\n- [NUTS background](https://ec.europa.eu/eurostat/web/nuts/background) — the\n  principles and level thresholds behind the classification.\n- [History of NUTS](https://ec.europa.eu/eurostat/web/nuts/history) — editions\n  and code changes between versions.\n- [Local Administrative Units (LAU)](https://ec.europa.eu/eurostat/web/nuts/local-administrative-units)\n  — the municipalities below NUTS3.\n- [GISCO reference geodata](https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts)\n  — the boundary geometries the vector tiles are built from.\n"},{"name":"Datasets","description":"The **Datasets** endpoints let an organization bring its own data onto the\nmap: upload a file or point the API at a remote endpoint, run the ingest\npipeline, and get back a profiled, queryable dataset ready to be rendered as\na layer. All dataset endpoints are scoped to the calling organization, named by\nthe required `X-Geografica-Org-Id` header: without it the request is rejected\nwith `401`, and with an organization the caller does not belong to, `403`.\n\nThe typical flow is create, upload (file sources only), trigger the ingestion,\nthen poll the dataset until its status is `ready` or `error`. Re-running the\ningestion replaces the dataset content, it never appends.\n\nGeographic sources (GeoJSON) are stored as features. Tabular sources (CSV, TSV,\nExcel and flat JSON records) become point features when they carry\nlatitude/longitude columns, otherwise they are joined onto a boundary set,\nworld regions or NUTS regions, and rendered on the shared boundary\ntiles.\nEither way a ready dataset carries an `attributes` profile describing its\ncolumns, which is what drives the front-end styling panel.\n"},{"name":"Licenses","description":"The licences data is published under. A dataset states its terms with one of\nthem, and every world region states the licence of its boundary in the same\nway, so a map can show the attribution each layer it draws requires.\n"},{"name":"Canvases","description":"A **canvas** is a saved map composition: everything needed to redraw it, held\nin a single `config` envelope. It carries an ordered list of layers, drawn\nbottom to top, an optional shared timeline, and the visualizations drawn from\nthe layers: one or more maps and the charts beside them.\n\nEach layer names the source it reads from, one of four:\n\n| Source | Reads from |\n|---|---|\n| `dataset` | A dataset of the same organization, geographic or tabular |\n| `boundary` | A boundary set of the shared catalog: world regions or NUTS |\n| `indicator` | A first-party indicator of the statistics registry |\n| `elevation` | The height of the land and the depth of the sea, from public elevation tiles |\n\nAn `elevation` layer reads no data of the organization. It keeps the heights\nbetween `min` and `max`, in metres, negative below sea level, either bound\nleft out to leave that side open: `{\"type\": \"elevation\", \"min\": 2000}` keeps\neverything above 2,000 m. Its `kind` is `fill`, shading the range with the\nlayer's `palette`, or `line`, drawing elevation lines `interval` metres apart\nacross it, every fifth one thicker and labelled. Lakes read at the height of\ntheir surface, since the tiles carry no lake depths, and the sea floor is\ncoarse close up. An elevation layer has no regions, so no chart reads it.\n\nThe envelope is validated on the way in, so a stored canvas always names\nsources the API can resolve: a config referencing a dataset the organization\ndoes not own is rejected, and deleting a dataset strips the layers reading\nfrom it out of every canvas that used it. The per-layer `style` is the\nexception, an open object passed through untouched and interpreted by the map\nrenderer.\n\nA layer naming a `time_column` is filtered to the canvas timeline, so one\nclock drives every animated layer rather than each carrying its own step.\n`timeline.current` is the step the canvas opens at, and the viewer can move\nto any other.\n\n`visualizations` lists what the canvas draws, each with an `id` unique within\nthe canvas and a `kind`:\n\n| Kind | Draws |\n|---|---|\n| `map` | Every layer of the canvas, opening at its own `view` (the camera), drawn flat or as a globe by `projection`, with an optional `lock_zoom_out` keeping viewers from zooming out past the view, a renderer defined `basemap`, the `basemaps` a viewer can switch it to with a button each (`satellite`, `terrain`, none by default), the corner its legend sits in, `legend_position` (`top_left` by default, `top_right`, `bottom_left` or `bottom_right`) |\n| `bar` | The regions ranked by value at the current time step: the `top` regions, highest or lowest first by `sort`, at one boundary `level` (the deepest the rows hold when omitted), or at every level together when `all_levels` is set; the bars plot the layer's `value_column`, or another numeric `column` of its dataset, keeping the colours of the map |\n| `timeseries` | The value over every time step, one line per region listed in `regions` |\n| `tilegram` | The regions as hexagons, each given tiles in proportion to its value at the current time step |\n\nA canvas can hold several maps, each with its own camera and projection, all\ndrawing the same layers on the same timeline. A chart names one of the\nlayers by `layer_id` and reads its dataset, its value column and its palette,\nso a chart and the maps always show the same numbers in the same colours. A\nchart must name a layer of the same canvas, and deleting a dataset drops the\ncharts reading its layers along with the layers themselves; the maps stay.\n\n`layout` places the visualizations on a grid, in the shape a dashboard widget\nis placed: one item per tile, with `i` the id of the visualization it draws,\n`x` and `y` the column and row it starts at, and `w` and `h` the columns and\nrows it spans. The grid is 12 columns wide, so a tile ends within them, and a\nvisualization is placed once. A visualization missing from the layout is\nplaced by the app, so the layout of a canvas with no `layout` is the app's\ndefault. Deleting a dataset drops the tiles of the charts it drops.\n\nEach visualization can carry an `aspect_ratio`, the shape its tile keeps at\nevery width: its height follows its width, so a map frames the same area on\na phone as on a wide screen. It is one of `16:9`, `3:2`, `4:3`, `1:1`, `4:5`\nand `9:16`, written as width to height. Without one, the tile is as tall as\nthe rows the layout gives it.\n\nEach visualization can also set `full_page_on_phone`, off by default: a\ntooltip opened on it on a phone then covers the whole page rather than\nopening beside what was tapped.\n\nA layer colours its features by `value_column` with a `palette`: a name from\nthe renderer's catalogue, the d3 colour schemes and the palettes Geografica\nadds to them, and whether the colours run reversed. Distinct hues suit a\ncolumn of categories and a ramp a column of magnitudes; an empty name picks\nthe one that fits the column. Setting `palette.id` colours the layer with a\npalette of the organization instead (see **Palettes**), and every canvas\nresponse carries the colours of those palettes under `palettes`, keyed by id.\n\nEach layer also carries a `tooltip`: whether it is shown, whether it follows\nthe pointer (`hover`) or opens on `click`, the column whose value heads it, and\nthe columns it lists in order. Each column takes an optional label and a\n`format`: a `style` (as stored, number, percent of a value from 0.0 to 1.0,\npercent of a value from 0 to 100, currency, compact, compact currency, date,\nimage to show a picture, or link to write the value as a link), an https `url`\nfor the image and link styles in which `{column}` is replaced by that column's\nvalue, so `https://example.com/sites/{id}` builds the address from the `id`\ncolumn (the value itself is the address when it is empty),\nfixed decimals, a `scale` the numeric styles multiply the value by, so a\ncolumn stored in millions sets `1000000`, and a prefix and a suffix such as a\nunit. A column marked\n`recolour` can be clicked in a pinned tooltip, and colours the layer by that\ncolumn for the viewer until the page reloads; the layer's own `value_column`\ncan then be clicked too, to colour it back. With no columns picked\nthe renderer lists the layer's `value_column`, or every column when the layer\ncolours by none. Unlike `style` the tooltip is typed and validated, so its\nshape is part of this schema.\n\nHow the tooltips look is set once for the canvas, in `tooltip_style`, because\na single popup lists every layer under the pointer. Its `theme` follows the\nviewer (`auto`), stays `light` or `dark`, uses the brand `accent`, or is\n`custom`, which reads the `background` and `text` colours.\n\nCanvases are scoped to the owning organization like datasets are, and carry\nthe same `public` flag. A public canvas is readable by anyone holding its id\nthrough the **Public** endpoints, without a login and whether or not the\norganization publishes a profile. Publishing a canvas does not publish the\ndatasets it reads: a layer over a dataset which is not itself public has\nnothing a public caller can load.\n"},{"name":"Palettes","description":"A **palette** is a set of colours an organization defines for its maps, next\nto the built-in catalogue of d3 colour schemes the renderer offers. Its `kind`\nsays what the colours encode:\n\n| Kind | Encodes | Colours |\n|---|---|---|\n| `categorical` | which category, used as a fixed list in order | 2 to 24, all distinct |\n| `sequential` | how much, blended from the first stop to the last | 2 to 9 |\n| `diverging` | which side of a midpoint, blended through the stops | 3 to 9 |\n\nColours are `#rrggbb` and are stored lowercase. The two greys the renderer\npaints missing data and folded categories in, `#d1d5db` and `#9ca3af`, are\nrefused, since a feature drawn in either would read as having no value.\n\nA canvas layer colours with a palette by setting `palette.id` to its UUID,\nwhile `palette.name` keeps picking from the built-in catalogue. A config naming\na palette the organization does not own is rejected. Every canvas response,\nthe public ones included, carries the colours of the palettes its layers use\nunder `palettes`, keyed by id, so a canvas is drawn in one request, embeds on\nother websites included.\n\nEditing a palette recolours every canvas using it. Deleting one points those\nlayers back at the default palette for their column: the canvases stay, and\ndraw with the built-in colours.\n"},{"name":"Public","description":"Everything an organization has chosen to publish, readable without\nauthentication.\n\nOrganizations, datasets and canvases each carry a `public` flag, and these\nendpoints never return a row without it. The two kinds of read are gated\ndifferently:\n\n* **Organization listings** (`/public/orgs`, and the datasets and canvases of\n  one organization) require the organization itself to be public. A listing is\n  the organization showing itself, so an organization which has not opted in\n  does not appear and answers `404`, the same way a name which was never taken\n  does.\n* **Everything else** (`/public/datasets`, `/public/canvases` and the reads by\n  id) requires only the flag on the resource. This is what the column means: anyone holding\n  the id can read it, without belonging to the owning organization. A shared\n  link therefore keeps working whether or not the organization publishes a\n  profile.\n\nWhat comes back is the public projection of each model, not the full record:\na dataset served here carries no acquisition config, since that can hold the\ncredentials its source is fetched with, and neither a dataset nor a canvas\nnames the user who created it.\n\nPublishing a canvas does not publish the datasets it reads. A layer over a\ndataset which is not itself public has nothing to draw for a caller who is not\na member, so a canvas meant to be shared should read from published datasets\nonly.\n"}]}