创建地点
POST
/map/sdk/v1/groups/{{group_id}}/elements
第二期
请求参数
Path 参数
group_id
string
设备的团队ID
Body 参数application/json
content
object
必需
type
string
必需
geometry
object (req.Geometry)
必需
properties
object (req.Property)
必需
name
string
必需
示例
{
"content": {
"type": "string",
"geometry": {
"clampToGround": true,
"color": "string"
},
"properties": {
"coordinates": {},
"type": "string"
}
},
"name": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/map/sdk/v1/groups/{{group_id}}/elements' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": {
"type": "string",
"geometry": {
"clampToGround": true,
"color": "string"
},
"properties": {
"coordinates": {},
"type": "string"
}
},
"name": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer <int64>
必需
message
string <string>
必需
示例值:
data
object
可选
id
string
可选
示例
{
"code": 0,
"message": "",
"data": {
"id": "string"
}
}