---
title: "Edit map visualisation"
method: PUT
path: "/api/v1/geoaware/admin/map-visualisations"
tags: ["GeoZones Admin"]
---

# Edit map visualisation

`PUT /api/v1/geoaware/admin/map-visualisations`

## Request

- Base URL: `http://localhost:8486`
- URL: `http://localhost:8486/api/v1/geoaware/admin/map-visualisations`
- Auth: API key in header `x-auth-token`

Updates an existing map visualisation

## Request body

- UpdateMapVisualisationRequestDTO: Update map visualisation request
  - `id` integer, required: Map visualisation ID
  - `name` string: Map visualisation name
  - `defaultProperties` FeatureTypeVisualisationPropertiesDTO: Feature type visualisation properties
    - `fillColor` string: Fill color in hex format (with or without alpha)
  - `featureTypeVisualisations` FeatureTypeVisualisationDTO[]: Feature type specific visualisations
    - `featureType` FeatureTypeDTO, required: Feature type information
      - `id` string: Feature type ID
      - `name` string: Feature type name
    - `properties` FeatureTypeVisualisationPropertiesDTO: Feature type visualisation properties
      - `fillColor` string: Fill color in hex format (with or without alpha)

## Response `200`

Map visualisation updated successfully

- MapVisualisationDTO: Map visualisation configuration
  - `id` integer: Map visualisation ID
  - `name` string: Map visualisation name
  - `defaultProperties` FeatureTypeVisualisationPropertiesDTO: Feature type visualisation properties
    - `fillColor` string: Fill color in hex format (with or without alpha)
  - `featureTypeVisualisations` FeatureTypeVisualisationDTO[]: Feature type specific visualisations
    - `featureType` FeatureTypeDTO, required: Feature type information
      - `id` string: Feature type ID
      - `name` string: Feature type name
    - `properties` FeatureTypeVisualisationPropertiesDTO: Feature type visualisation properties
      - `fillColor` string: Fill color in hex format (with or without alpha)

## Other responses

- `400`: Invalid request data
- `403`: Access denied
- `404`: Map visualisation not found
- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/airdodge/apis/api-core.md) - [All operations](https://skmtc.dev/airdodge/apis/api-core/llms.txt) - [OpenAPI document](https://skmtc.dev/airdodge/apis/api-core/revisions/fb3c5a1055cc?raw)
