POST api/poi/save

Request Information

URI Parameters

None.

Body Parameters

PoiSaveCommandDataContract
NameDescriptionTypeAdditional information
Latitude

decimal number

None.

Longitude

decimal number

None.

Name

string

None.

PrimaryType

EnumDataContract

None.

Types

Collection of EnumDataContract

None.

Id

integer

None.

Request Formats

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
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PoiSaveCommandDataContract'.

Response Information

Resource Description

PoiDataContract
NameDescriptionTypeAdditional information
CenterPoint

PointDataContract

None.

Name

string

None.

PrimaryType

EnumDataContract

None.

Types

Collection of 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
}