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": "7c6f2591-f948-4da4-903d-814bbe7fa9e1",
"cleanroom_type_id": "47a043fc-495a-4c34-b017-353acf83ef73",
"code": 3,
"date_hu": "2026-01-19T09:37:50.5221692+00:00",
"id": "10edada7-31e5-4565-b774-e3fc03558da5",
"site_id": "4ee7f86a-6552-477a-bf2a-801f37bafc74",
"wash_count": 6,
"position": 1,
"pc_id": "f85c7f24-6650-42fc-a840-ed35fb8f5291"
}
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>7c6f2591-f948-4da4-903d-814bbe7fa9e1</bag_status_id> <cleanroom_type_id>47a043fc-495a-4c34-b017-353acf83ef73</cleanroom_type_id> <code>3</code> <date_hu>2026-01-19T09:37:50.5221692+00:00</date_hu> <id>10edada7-31e5-4565-b774-e3fc03558da5</id> <pc_id>f85c7f24-6650-42fc-a840-ed35fb8f5291</pc_id> <position>1</position> <site_id>4ee7f86a-6552-477a-bf2a-801f37bafc74</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:
"c5fc8abb-e853-462b-a21e-5aeb777231f9"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c5fc8abb-e853-462b-a21e-5aeb777231f9</guid>