PUT api/peoplecounter/{shopId}/updatecreate
Updates the count of a record if it exists, otherwise it creates a new record.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shopId |
The shop id. |
integer |
Required |
Body Parameters
The patch/post model.
PublicAPI.Models.PeopleCounterViewModel| Name | Description | Type | Additional 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-10-24T06:45:03.6187653+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-10-24T06:45:03.6187653+02:00</CountDate> <CountHour>2</CountHour> </PeopleCounterViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
True on success.
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>