POST api/{programid}/Consumer/SaveClockInLocation

Sets the consumers last location service type location.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

string

None.

Body Parameters

SaveConsumerLastClockInLocationRequest
NameDescriptionTypeAdditional information
ProgramId

integer

None.

ConsumerId

string

None.

LocationType

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProgramId": 1,
  "ConsumerId": "sample string 2",
  "LocationType": 3
}

application/xml, text/xml

Sample:
<SaveConsumerLastClockInLocationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.Models.NavisionData.CommonClasses">
  <ConsumerId>sample string 2</ConsumerId>
  <LocationType>3</LocationType>
  <ProgramId>1</ProgramId>
</SaveConsumerLastClockInLocationRequest>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>