POST Web/masterdata/saveuserlocation

Request Information

URI Parameters

None.

Body Parameters

UserLocationDto
NameDescriptionTypeAdditional information
UserId

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Timestamp

date

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "Latitude": 2.1,
  "Longitude": 3.1,
  "Timestamp": "2026-05-30T04:46:40.2107044+05:30"
}

text/html

Sample:
{"UserId":"sample string 1","Latitude":2.1,"Longitude":3.1,"Timestamp":"2026-05-30T04:46:40.2107044+05:30"}

application/xml, text/xml

Sample:
<WebMasterDataController.UserLocationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tracking.Api.Controllers">
  <Latitude>2.1</Latitude>
  <Longitude>3.1</Longitude>
  <Timestamp>2026-05-30T04:46:40.2107044+05:30</Timestamp>
  <UserId>sample string 1</UserId>
</WebMasterDataController.UserLocationDto>

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 'UserLocationDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.