POST api/peoplecounter/{shopId}
Creates a new record.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
shopId |
The shop id. |
integer |
Required |
Body Parameters
The post model.
PublicAPI.Models.PeopleCounterViewModelName | 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-05-04T06:38:17.6228818+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:38:17.6228818+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>