{
"name": "测试区域",
"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 POST '/openapi/v0.9/map/api/v1/project//flight-areas' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "测试区域",
"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": {
"id": "string",
"name": "string"
}
}