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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

ParticleCounterViewModel
NameDescriptionTypeAdditional information
active

boolean

Required

anatype_id

globally unique identifier

Required

cleanroom_id

globally unique identifier

None.

description

string

None.

id

globally unique identifier

None.

ip_address

string

Required

particle_counter_type_id

globally unique identifier

Required

site_id

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "active": true,
  "anatype_id": "9a1fcccb-fbf1-412c-bf70-2a6d79f9c1d0",
  "cleanroom_id": "81f9bb0a-e73f-45e1-8d62-15ac612c0764",
  "description": "sample string 3",
  "id": "4502d426-2ade-413c-9ac5-2e736b9475d8",
  "ip_address": "sample string 5",
  "particle_counter_type_id": "6e39f343-b0cd-409f-b9f4-2f8fd2d81754",
  "site_id": "697d9ac0-2bd8-44a7-966e-bff25b8acf07"
}

application/xml, text/xml

Sample:
<particle_counter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <anatype_id>9a1fcccb-fbf1-412c-bf70-2a6d79f9c1d0</anatype_id>
  <cleanroom_id>81f9bb0a-e73f-45e1-8d62-15ac612c0764</cleanroom_id>
  <description>sample string 3</description>
  <id>4502d426-2ade-413c-9ac5-2e736b9475d8</id>
  <ip_address>sample string 5</ip_address>
  <particle_counter_type_id>6e39f343-b0cd-409f-b9f4-2f8fd2d81754</particle_counter_type_id>
  <site_id>697d9ac0-2bd8-44a7-966e-bff25b8acf07</site_id>
</particle_counter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"35e3ed0b-a309-4ad0-bcc3-eadd4d2a954d"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">35e3ed0b-a309-4ad0-bcc3-eadd4d2a954d</guid>