PUT api/peoplecounter/{shopId}/updatecreate

Updates the count of a record if it exists, otherwise it creates a new record.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopId

The shop id.

integer

Required

Body Parameters

The patch/post 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-06-18T14:10:07.1567221+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-06-18T14:10:07.1567221+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>