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": "bb9194f9-bdf8-42bd-80a5-d444b5245502",
  "cleanroom_type_id": "9552fc92-ca7e-402a-9f76-9a900169f65e",
  "code": 3,
  "date_hu": "2026-06-10T01:07:33.6565484+00:00",
  "id": "a51c3d00-0657-49bf-9e46-fc3937a20a33",
  "site_id": "be2ff9ae-4599-4a91-9c46-d7353b0b37e0",
  "wash_count": 6,
  "position": 1,
  "pc_id": "c8332544-24df-4fde-b446-caecd539c1a8"
}

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>bb9194f9-bdf8-42bd-80a5-d444b5245502</bag_status_id>
  <cleanroom_type_id>9552fc92-ca7e-402a-9f76-9a900169f65e</cleanroom_type_id>
  <code>3</code>
  <date_hu>2026-06-10T01:07:33.6565484+00:00</date_hu>
  <id>a51c3d00-0657-49bf-9e46-fc3937a20a33</id>
  <pc_id>c8332544-24df-4fde-b446-caecd539c1a8</pc_id>
  <position>1</position>
  <site_id>be2ff9ae-4599-4a91-9c46-d7353b0b37e0</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:
"b916455f-88a5-41d7-aa61-57b02c207dc2"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">b916455f-88a5-41d7-aa61-57b02c207dc2</guid>