---
title: "Annotation Update"
method: PUT
path: "/openapi/v2.0/workspaces/{workspace_id}/elements/{id}"
tags: ["Map/Map Annotation/Annotation Update", "Map/Map Annotation/Annotation CRUD"]
---

# Annotation Update

`PUT /openapi/v2.0/workspaces/{workspace_id}/elements/{id}`

## Request

- Base URL: `` (relative, and it does not resolve against the document’s source URL)
- URL: `/openapi/v2.0/workspaces/{workspace_id}/elements/{id}`
- Auth: none required

Update the attributes of a map annotation. All body fields are optional; only passed fields are updated

## Path parameters

- `workspace_id` string, uuid, required
- `id` string, uuid, required

## Headers

- `X-User-Token` string, required
- `X-Request-Id` string
- `X-Language` string

## Request body

- object: Optional update fields; only passed fields are updated, unpassed fields retain original values
  - `name` string: Annotation Name
  - `status` integer: Annotation Status
  - `display` 0 | 1: Display status: 0=hidden, 1=visible
  - `content` object: GeoJSON Feature Geometry Content
  - `remark` string: Remark
  - `elevation_load_status` integer: Elevation Loading Status
  - `target_layer_id` string: Target Layer ID

## Response `200`

success

- object
  - `code` integer: Non-zero Indicates Exception
  - `message` string: Message Prompt
  - `data` object: Updated Annotation Element Info
    - `id` string: UUID of Updated Annotation Element

## Other responses

- `400`: Parameter Error
- `401`: Authentication Failed
- `403`: Insufficient Permission
- `404`: Resource Not Found
- `500`: Service Exception

---

[API](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud.md) - [All operations](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/revisions/aeef0010be34?raw)
