Update the attributes of a map annotation. All body fields are optional; only passed fields are updated
Request
Body Params application/jsonRequired
{
"name": "dji_tiankongzhicheng2",
"content": {
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"clampToGround": true
},
"geometry": {
"type": "Point",
"coordinates": [
108.42625652534299,
30.59263023356542,
0
]
}
}
}
Request Code Samples
curl --location --request PUT '/openapi/v2.0/workspaces/78fec78d-4ef4-488d-90d3-9ff83659598c/elements/d2066b7d-a857-4b94-9b5a-97ed658c602c' \
--header 'X-User-Token: {{X-User-Token}}' \
--header 'X-Request-Id: {{$string.uuid}}' \
--header 'X-Request-Id: {{$string.uuid}}' \
--header 'X-Language: zh' \
--header 'X-Language: zh' \
--header 'Content-Type: application/json' \
--data '{
"name": "dji_tiankongzhicheng2",
"content": {
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"clampToGround": true
},
"geometry": {
"type": "Point",
"coordinates": [
108.42625652534299,
30.59263023356542,
0
]
}
}
}'
Responses
{
"code": 0,
"message": "success",
"data": {
"id": "d2066b7d-a857-4b94-9b5a-97ed658c602c"
}
}
Modified at 2026-05-26 14:32:15