API DocsAPI Docs
post/api/group/{groupId}/pois
post/api/group/{groupId}/pois
创建小组POI
Basic Information
Request Method:
post
Request URL:
https://www.lycoo.com/api/group/{groupId}/pois
Tags:
小组POI管理
Description
在指定小组中创建一个POI
Path Parameters
Path Parameters Explanation
Path parameters are variables in the URL path, for example:
https://www.lycoo.com/api/group/:groupId/pois
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
groupId | string | Required | example | 小组ID |
Header Parameters
Header Parameters Explanation
Header parameters are used to pass additional information, such as authentication credentials, content type, etc.
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
Authorization | string | Required | Bearer sha_1234567890abcdef... | The authentication header is used to verify the identity of API requests, containing an access token Format: Bearer {token} |
Request Body Parameters
Request Body Parameters Explanation
Request body parameters are used to pass complex structured data, typically using the following format: application/json
Parameter Details
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
name | string | Required | 张三 | POI名称 |
type | string | Optional | default | POI类型 |
latitude | number | Required | 42 | 纬度 格式: double |
longitude | number | Required | 42 | 经度 格式: double |
country | string | Optional | 10 | 国家 |
province | string | Optional | example | 省/州 |
city | string | Optional | example | 城市 |
district | string | Optional | example | 区/县 |
township | string | Optional | example | 乡镇 |
address | string | Optional | example | 详细地址 |
building | string | Optional | example | 建筑物 |
coordinate_system | string | Required | WGS84 | 坐标系统,例如 WGS84、GCJ-02、BD-09等 可选值: WGS84, GCJ-02, BD-09 |
JSON Example
{
"name": "string",
"type": "string",
"latitude": 0,
"longitude": 0,
"country": "string",
"province": "string",
"city": "string",
"district": "string",
"township": "string",
"address": "string",
"building": "string",
"coordinate_system": "string"
}
Response Example
201POI创建成功
{
"success": true,
"message": "string"
}
400
401
403
500