POST api/v1/geo-locations/for-current-user

Updates geolocation for current user

Request Information

URI Parameters

None.

Body Parameters

geolocation data

GeoLocationDto
NameDescriptionTypeAdditional information
GeoLocationId

integer

None.

CaseId

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Timestamp

date

None.

Request Formats

application/json, text/json

Sample:
{
  "geoLocationId": 1,
  "caseId": 1,
  "latitude": 2.1,
  "longitude": 3.1,
  "timestamp": "2025-12-08T10:20:13.1099096+01:00"
}

application/xml, text/xml

Sample:
<GeoLocationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models">
  <CaseId>1</CaseId>
  <GeoLocationId>1</GeoLocationId>
  <Latitude>2.1</Latitude>
  <Longitude>3.1</Longitude>
  <Timestamp>2025-12-08T10:20:13.1099096+01:00</Timestamp>
</GeoLocationDto>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.