更新标注
PUT
/openapi/v0.9/map/api/v1/workspaces/{proj_uuid}/elements/{id}
es-geo-service
请求参数
Path 参数
proj_uuid
string
项目ID
id
string
元素ID
示例值:
800c9e11-828d-49d2-940f-d37372967e55
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
content
array[integer]
内容
display
integer
可选
example: 1
elevation_load_status
integer
可选
example: 1
id
string
可选
example: "800c9e11-828d-49d2-940f-d37372967e55"
name
string
可选
example: "更新后的标注"
orders
array [object {2}]
可选
example: [{"id": "800c9e11-828d-49d2-940f-d37372967e55", "order": 1}]
id
string
可选
example: "resource_123"
order
integer
可选
example: 1
source_layer_id
integer
可选
example: 123456
status
integer
可选
example: 1
target_layer_id
string
可选
example: "layer-123456"
workspaceID
string
可选
example: "ws-123456"
示例
{
"content": {
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"is3d": false,
"font_size": 16
},
"geometry": {
"type": "Circle",
"coordinates": [
115.411870825,
23.770611703
],
"radius": 1899.04
}
},
"name": "testName"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/openapi/v0.9/map/api/v1/workspaces//elements/800c9e11-828d-49d2-940f-d37372967e55' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": {
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"is3d": false,
"font_size": 16
},
"geometry": {
"type": "Circle",
"coordinates": [
115.411870825,
23.770611703
],
"radius": 1899.04
}
},
"name": "testName"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
响应描述
data
object
必需
id
string
ID 编号
示例
{
"code": 0,
"message": "success",
"data": {
"id": "916590e0-xxx-b2b3-d70a13615910"
}
}
修改于 2025-06-24 09:55:16