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": "599117de-79a8-4972-9e34-84cfad566ad2",
"cleanroom_type_id": "a2c05b8e-3bf5-4fda-a270-80ffcb72022f",
"code": 3,
"date_hu": "2026-01-19T06:22:04.0832502+00:00",
"id": "6a47d645-dd63-411f-b49e-82d11d93682e",
"site_id": "aa174d85-b83c-462f-9ce6-6a16ec7fa2bc",
"wash_count": 6,
"position": 1,
"pc_id": "835a8cb0-7e6a-4bf3-8d7d-95914876da84"
}
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>599117de-79a8-4972-9e34-84cfad566ad2</bag_status_id> <cleanroom_type_id>a2c05b8e-3bf5-4fda-a270-80ffcb72022f</cleanroom_type_id> <code>3</code> <date_hu>2026-01-19T06:22:04.0832502+00:00</date_hu> <id>6a47d645-dd63-411f-b49e-82d11d93682e</id> <pc_id>835a8cb0-7e6a-4bf3-8d7d-95914876da84</pc_id> <position>1</position> <site_id>aa174d85-b83c-462f-9ce6-6a16ec7fa2bc</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:
"e6d3aa11-bb50-44b4-a5dd-bb308667d24b"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">e6d3aa11-bb50-44b4-a5dd-bb308667d24b</guid>