POST api/app/SiteAttendance/SetLocation

Request Information

URI Parameters

None.

Body Parameters

SetLocationBindingModel
NameDescriptionTypeAdditional information
ProjectId

string

Required

IsOnSite

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": "sample string 1",
  "IsOnSite": true
}

application/xml, text/xml

Sample:
<SetLocationBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Central.API.Common.BindingModel">
  <RequestId xmlns="http://schemas.datacontract.org/2004/07/Central.API.Enterprise.BindingModels">f7746f02-fe71-4312-86b7-5f1f9ad71a62</RequestId>
  <IsOnSite>true</IsOnSite>
  <ProjectId>sample string 1</ProjectId>
</SetLocationBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseModelOfObject
NameDescriptionTypeAdditional information
ResponseTime

date

None.

ResponseCode

ResponseCode

None.

ResponseMessage

string

None.

ResponsePermission

string

None.

DataSet

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseTime": "2026-02-17T07:27:03.1165522+00:00",
  "ResponseCode": 0,
  "ResponseMessage": "sample string 2",
  "ResponsePermission": "sample string 3",
  "DataSet": {}
}

application/xml, text/xml

Sample:
<ResponseModelOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Central.API.Enterprise.BindingModels">
  <DataSet />
  <ResponseCode>NoDataFound</ResponseCode>
  <ResponseMessage>sample string 2</ResponseMessage>
  <ResponsePermission>sample string 3</ResponsePermission>
  <ResponseTime>2026-02-17T07:27:03.1165522+00:00</ResponseTime>
</ResponseModelOfanyType>