PUT api/peoplecounter/{shopId}

Updates the count of a record.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopId

The shop id.

integer

Required

Body Parameters

The patch model.

PublicAPI.Models.PeopleCounterViewModel
NameDescriptionTypeAdditional information
CountDate

The count date of the record.

date

None.

CountHour

The hour of the record.

integer

Range: inclusive between 0 and 23

Count

The amount counted

integer

Range: inclusive between 0 and 2147483647

Request Formats

application/json, text/json

Sample:
{
  "CountDate": "2025-05-04T06:41:37.5209631+02:00",
  "CountHour": 2,
  "Count": 3
}

application/xml, text/xml

Sample:
<PeopleCounterViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <Count>3</Count>
  <CountDate>2025-05-04T06:41:37.5209631+02:00</CountDate>
  <CountHour>2</CountHour>
</PeopleCounterViewModel>

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

Response Information

Resource Description

True on success.

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>