POST api/ops/usergeo

Request Information

URI Parameters

None.

Body Parameters

UserLocationParams
NameDescriptionTypeAdditional information
loc

UserLocation

None.

Request Formats

application/json, text/json

Sample:
{
  "loc": {
    "UserId": 1,
    "SourceId": 2,
    "CompanyId": 3,
    "Status": 0,
    "LastUpdateTime": "2025-01-22T18:20:56.7112084+00:00",
    "Latitude": 5.1,
    "Longitude": 6.1,
    "Address": "sample string 7",
    "IsValid": true
  }
}

application/xml, text/xml

Sample:
<UserLocationParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RMPAPI.Models">
  <Location xmlns:d2p1="http://schemas.datacontract.org/2004/07/RMPLIB.Models">
    <d2p1:Address>sample string 7</d2p1:Address>
    <d2p1:CompanyId>3</d2p1:CompanyId>
    <d2p1:LastUpdateTime>2025-01-22T18:20:56.7112084+00:00</d2p1:LastUpdateTime>
    <d2p1:Latitude>5.1</d2p1:Latitude>
    <d2p1:Longitude>6.1</d2p1:Longitude>
    <d2p1:SourceId>2</d2p1:SourceId>
    <d2p1:Status>None</d2p1:Status>
    <d2p1:UserId>1</d2p1:UserId>
  </Location>
</UserLocationParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserLocationResponse
NameDescriptionTypeAdditional information
Result

boolean

None.

StatusCode

integer

None.

Status

string

None.

Messages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": true,
  "StatusCode": 2,
  "Status": "sample string 3",
  "Messages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<UserLocationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RMPAPI.Models">
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Messages>
  <Result>true</Result>
  <Status>sample string 3</Status>
  <StatusCode>2</StatusCode>
</UserLocationResponse>