{
"name": "更新后的区域",
"status": "enable",
"content": {
"type": "Feature",
"properties": {
"color": "#FF0000",
"width": 50,
"clampToGround": true
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
114.05294391845892,
22.545987950176738
],
[
114.05346732054439,
22.544997673245454
],
[
114.05180186016695,
22.544867393234725
],
[
114.05294391845892,
22.545987950176738
]
]
]
}
}
}
curl --location --request PUT '/openapi/v0.9/map/api/v1/project//flight-areas/area-123456' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/application/json' \
--data-raw '{
"name": "更新后的区域",
"status": "enable",
"content": {
"type": "Feature",
"properties": {
"color": "#FF0000",
"width": 50,
"clampToGround": true
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
114.05294391845892,
22.545987950176738
],
[
114.05346732054439,
22.544997673245454
],
[
114.05180186016695,
22.544867393234725
],
[
114.05294391845892,
22.545987950176738
]
]
]
}
}
}'
{
"code": 0,
"message": "string",
"data": {
"area_hash": "string",
"id": "string",
"updated_area": {
"area_hash": "string",
"content": [
0
],
"created_by": "string",
"created_nickname": "string",
"created_time": 0,
"id": "string",
"name": "string",
"status": "string",
"type": "string",
"updated_by": "string",
"updated_nickname": "string",
"updated_time": 0
}
}
}