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": "6044a5f6-8e50-4b3c-8aa0-e7f2cd6ff212",
  "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>6044a5f6-8e50-4b3c-8aa0-e7f2cd6ff212</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:
"be7a0045-fa2f-4e58-a994-2fb859d83ec5"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">be7a0045-fa2f-4e58-a994-2fb859d83ec5</guid>