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": "5da49109-5b87-4943-9501-17f9317b348d",
"cleanroom_type_id": "31f4e4d3-36b9-433e-bcec-05dcff677810",
"code": 3,
"date_hu": "2026-03-10T09:15:31.3916297+00:00",
"id": "911ab972-ac5c-43e5-a155-d1c84dbf6e40",
"site_id": "9a8d0e76-364e-4c5d-9b7e-5e0e056ff2dd",
"wash_count": 6,
"position": 1,
"pc_id": "ddb0c3dd-a0f8-462b-b7fb-368518458aee"
}
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>5da49109-5b87-4943-9501-17f9317b348d</bag_status_id> <cleanroom_type_id>31f4e4d3-36b9-433e-bcec-05dcff677810</cleanroom_type_id> <code>3</code> <date_hu>2026-03-10T09:15:31.3916297+00:00</date_hu> <id>911ab972-ac5c-43e5-a155-d1c84dbf6e40</id> <pc_id>ddb0c3dd-a0f8-462b-b7fb-368518458aee</pc_id> <position>1</position> <site_id>9a8d0e76-364e-4c5d-9b7e-5e0e056ff2dd</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:
"6fbdae45-3429-43bd-a50e-518dcb04e224"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">6fbdae45-3429-43bd-a50e-518dcb04e224</guid>