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": "d0b0cc80-e157-47ee-8d01-3960fa90e3ea",
  "cleanroom_type_id": "519b975a-920f-4e95-9f3e-c488ceedf91d",
  "code": 3,
  "date_hu": "2026-06-09T06:47:19.9822164+00:00",
  "id": "81b19d85-b088-4710-97bd-d3349394f9b8",
  "site_id": "c61769d4-29ac-4b3a-a019-5fd17aea7037",
  "wash_count": 6,
  "position": 1,
  "pc_id": "b8dcadfb-30ac-421c-8307-dcd98e893452"
}

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>d0b0cc80-e157-47ee-8d01-3960fa90e3ea</bag_status_id>
  <cleanroom_type_id>519b975a-920f-4e95-9f3e-c488ceedf91d</cleanroom_type_id>
  <code>3</code>
  <date_hu>2026-06-09T06:47:19.9822164+00:00</date_hu>
  <id>81b19d85-b088-4710-97bd-d3349394f9b8</id>
  <pc_id>b8dcadfb-30ac-421c-8307-dcd98e893452</pc_id>
  <position>1</position>
  <site_id>c61769d4-29ac-4b3a-a019-5fd17aea7037</site_id>
  <wash_count>6</wash_count>
</bag>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"2aac5e58-b109-46fe-a818-ae7abb9d0c23"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2aac5e58-b109-46fe-a818-ae7abb9d0c23</guid>