POST api/particlecountertypeapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
ParticleCounterTypeViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
None. |
|
| code | integer |
Required |
|
| active | boolean |
Required |
|
| calculation_mode | integer |
None. |
|
| description | string |
None. |
|
| type | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"id": "716d65a6-45f2-4a3b-aed0-f41b12e78e16",
"code": 2,
"active": true,
"calculation_mode": 1,
"description": "sample string 4",
"type": "sample string 5"
}
application/xml, text/xml
Sample:
<particle_counter_Type xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <calculation_mode>1</calculation_mode> <code>2</code> <description>sample string 4</description> <id>716d65a6-45f2-4a3b-aed0-f41b12e78e16</id> <type>sample string 5</type> </particle_counter_Type>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"6007ddef-32b3-4d12-b350-046e029f296b"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">6007ddef-32b3-4d12-b350-046e029f296b</guid>