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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

BagViewModel
NameDescriptionTypeAdditional information
active

boolean

Required

bag_status_id

globally unique identifier

Required

cleanroom_type_id

globally unique identifier

Required

code

integer

Required

date_hu

date

None.

id

globally unique identifier

None.

site_id

globally unique identifier

Required

wash_count

integer

None.

position

integer

None.

pc_id

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "active": true,
  "bag_status_id": "34052e00-79f3-4cc3-b129-5f952a979b5b",
  "cleanroom_type_id": "45c4c9c4-864a-45a7-9cc5-d57d2a9e962c",
  "code": 3,
  "date_hu": "2026-06-09T05:32:33.6260208+00:00",
  "id": "fbcf063b-ebac-457d-98e6-32b048bf8bdd",
  "site_id": "c2d37668-d079-476e-8848-af8b7f0d4450",
  "wash_count": 6,
  "position": 7,
  "pc_id": "69e721f3-14cb-4a0c-8445-c30b254f3302"
}

application/xml, text/xml

Sample:
<bag xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <bag_status_id>34052e00-79f3-4cc3-b129-5f952a979b5b</bag_status_id>
  <cleanroom_type_id>45c4c9c4-864a-45a7-9cc5-d57d2a9e962c</cleanroom_type_id>
  <code>3</code>
  <date_hu>2026-06-09T05:32:33.6260208+00:00</date_hu>
  <id>fbcf063b-ebac-457d-98e6-32b048bf8bdd</id>
  <pc_id>69e721f3-14cb-4a0c-8445-c30b254f3302</pc_id>
  <position>7</position>
  <site_id>c2d37668-d079-476e-8848-af8b7f0d4450</site_id>
  <wash_count>6</wash_count>
</bag>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BagViewModel'.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"73a300c4-455f-4171-b79a-3e49b060bb9e"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">73a300c4-455f-4171-b79a-3e49b060bb9e</guid>