{
"element_groups": [
{
"name": "xxx",
"p_index": -1,
"elements": [
{
"type": 1,
"name": "aaa",
"status": 1,
"content": {
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"is3d": false
},
"geometry": {
"type": "LineString",
"coordinates": [
[
114.362652195628,
22.797118474136344,
90.50663103036271
],
[
114.36357319976744,
22.797151090038223,
74.73182277214048
]
]
}
}
},
{
"type": 0,
"name": "abc",
"status": 1,
"content": {
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"clampToGround": false
},
"geometry": {
"type": "Point",
"coordinates": [
114.3625466082236,
22.79728163429665,
182.52560183429566
]
}
}
}
]
}
]
}
curl --location --request POST '/openapi/v0.9/map/api/v1/workspaces//element-groups/elements' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"element_groups": [
{
"name": "xxx",
"p_index": -1,
"elements": [
{
"type": 1,
"name": "aaa",
"status": 1,
"content": {
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"is3d": false
},
"geometry": {
"type": "LineString",
"coordinates": [
[
114.362652195628,
22.797118474136344,
90.50663103036271
],
[
114.36357319976744,
22.797151090038223,
74.73182277214048
]
]
}
}
},
{
"type": 0,
"name": "abc",
"status": 1,
"content": {
"type": "Feature",
"properties": {
"color": "#2D8CF0",
"clampToGround": false
},
"geometry": {
"type": "Point",
"coordinates": [
114.3625466082236,
22.79728163429665,
182.52560183429566
]
}
}
}
]
}
]
}'
{
"code": 0,
"message": "success",
"data": {}
}