POST api/User/SaveUserLocation

Request Information

URI Parameters

None.

Body Parameters

UserLocationUpdateModel
NameDescriptionTypeAdditional information
UserId

string

Required

LocationCode

string

Required

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "LocationCode": "sample string 2"
}

application/xml, text/xml

Sample:
<UserLocationUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AvicollectSecurity.Logic.Models">
  <LocationCode>sample string 2</LocationCode>
  <UserId>sample string 1</UserId>
</UserLocationUpdateModel>

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

Response Information

Resource Description

CreateResponse
NameDescriptionTypeAdditional information
Id

Object

None.

Status

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": {},
  "Status": true,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<CreateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AvicollectSecurity.Logic.Models">
  <Id />
  <Message>sample string 3</Message>
  <Status>true</Status>
</CreateResponse>