POST api/bagapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
BagViewModel| Name | Description | Type | Additional 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": "b97d2ab3-87ab-48c4-88d9-1dffc2b0012d",
"cleanroom_type_id": "7c639057-f528-44d2-8922-2ff5ca22e228",
"code": 3,
"date_hu": "2026-01-19T09:24:29.3076482+00:00",
"id": "0e148832-6e80-4b8b-84aa-027b1db640c0",
"site_id": "6701fcf2-9013-4ad4-9b62-a09c5fa86701",
"wash_count": 6,
"position": 1,
"pc_id": "a46d10be-5696-4656-8e24-5c2810f24a14"
}
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>b97d2ab3-87ab-48c4-88d9-1dffc2b0012d</bag_status_id> <cleanroom_type_id>7c639057-f528-44d2-8922-2ff5ca22e228</cleanroom_type_id> <code>3</code> <date_hu>2026-01-19T09:24:29.3076482+00:00</date_hu> <id>0e148832-6e80-4b8b-84aa-027b1db640c0</id> <pc_id>a46d10be-5696-4656-8e24-5c2810f24a14</pc_id> <position>1</position> <site_id>6701fcf2-9013-4ad4-9b62-a09c5fa86701</site_id> <wash_count>6</wash_count> </bag>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"2a869b67-989e-4e0b-ab0d-f79750abfaad"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2a869b67-989e-4e0b-ab0d-f79750abfaad</guid>