POST api/particlecountertypeapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

ParticleCounterTypeViewModel
NameDescriptionTypeAdditional 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": "1617b1de-015a-4f12-a2f2-534cfea3accb",
  "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>1617b1de-015a-4f12-a2f2-534cfea3accb</id>
  <type>sample string 5</type>
</particle_counter_Type>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"09e86d48-c485-45c8-b048-495411adbc19"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">09e86d48-c485-45c8-b048-495411adbc19</guid>