Update Map Elements
PUT /map/api/v1/workspaces/{workspace_id}/elements/{id}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
workspace_id | path | string | true | workspace id |
id | path | string | true | element id |
x-auth-token | header | string | true | access token |
body | body | map.ElementUpdateInput | true | body |
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | map.SwagUUIDResp |
Example responses
{
"code":0
"data":{
"id":"94c51c50-f111-45e8-ac8c-4f96c93ced44"
},
"message": "success"
}
Schemas
map.ElementUpdateInput
{
"content": {
"geometry": {
"coordinates": [
null
],
"type": "string"
},
"properties": {
"clampToGround": true,
"color": "string"
},
"type": "string"
},
"name": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
content | map.Content | false | none | resource content object |
name | string | false | none | element name |
map.Content
{
"geometry": {
"coordinates": [
null
],
"type": "string"
},
"properties": {
"clampToGround": true,
"color": "string"
},
"type": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
geometry | object | false | none | geojson attribute |
» coordinates | [any] | false | none | geojson attribute |
» type | string | false | none | geojson attribute |
properties | object | false | none | geojson attribute |
» clampToGround | boolean | false | none | whether it is on the ground |
» color | string | false | supported colors * BLUE:0x2D8CF0 * GREEN - 0x19BE6B * YELLOW - 0xFFBB00 * ORANGE - 0xB620E0 * RED - 0xE23C39 * PURPLE - 0x212121 | |
type | string | false | none | geojson attribute |
map.SwagUUIDResp
{
"code": 0,
"data": {
"id": "string"
},
"message": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
code | integer | true | none | error code |
data | map.UUIDResp | true | none | none |
message | string | true | none | error description |
map.UUIDResp
{
"id": "string"
}
Properties
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | true | none | element id |