Needio.Services

<back to all web services

AddUserLocationRequest

Requires Authentication
The following routes are available for this service:
All Verbs/User/AddUserLocation/
AddUserLocationRequest Parameters:
NameParameterData TypeRequiredDescription
LocationNamequerystringNo
LocationqueryGeoLocationNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
AddUserLocationResponse Parameters:
NameParameterData TypeRequiredDescription
userLocationformUserLocationDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
UserLocationDTO Parameters:
NameParameterData TypeRequiredDescription
UserLocationIdformintNo
UserIdformintNo
LocationNameformstringNo
LocationformGeoLocationNo
ActiveYnformboolNo
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
AddUserLocationResponse Parameters:
NameParameterData TypeRequiredDescription
userLocationformUserLocationDTONo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /User/AddUserLocation/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"LocationName":"String","Location":{"Lon":"String","Lat":"String","GeoAddress":"String","IsDeleted":false},"start":"\/Date(1594459575978+0300)\/"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"userLocation":{"UserLocationId":0,"UserId":0,"LocationName":"String","Location":{"Lon":"String","Lat":"String","GeoAddress":"String","IsDeleted":false},"ActiveYn":false},"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"}}