POST api/poi/save
Adds POI's
Request Information
URI Parameters
None.
Body Parameters
Dezrez.Core.DataContracts.External.Api.Location.Command.PoiSaveCommandDataContractName | Description | Type | Additional information |
---|---|---|---|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
Name | string |
None. |
|
PrimaryType | Dezrez.Core.DataContracts.External.Api.System.EnumDataContract |
None. |
|
Types | Collection of Dezrez.Core.DataContracts.External.Api.System.EnumDataContract |
None. |
|
Id | integer |
None. |
Request Formats
application/x-www-form-urlencoded
Sample:
Sample not available.
application/json, text/json
Sample:
{ "Latitude": 1.1, "Longitude": 2.1, "Name": "sample string 3", "PrimaryType": { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" }, "Types": [ { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" }, { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" } ], "Id": 4 }
Response Information
Resource Description
Dezrez.Core.DataContracts.External.Api.Location.Query.PoiDataContractName | Description | Type | Additional information |
---|---|---|---|
CenterPoint | Dezrez.Core.DataContracts.External.Api.Location.Query.PointDataContract |
None. |
|
Name | string |
None. |
|
PrimaryType | Dezrez.Core.DataContracts.External.Api.System.EnumDataContract |
None. |
|
Types | Collection of Dezrez.Core.DataContracts.External.Api.System.EnumDataContract |
None. |
|
Id | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "CenterPoint": { "Latitude": 1.1, "Longitude": 2.1, "Altitude": 3.1, "Order": 4, "Id": 5 }, "Name": "sample string 1", "PrimaryType": { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" }, "Types": [ { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" }, { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" } ], "Id": 2 }