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": "6b464380-bc8c-4e76-9e1b-926b373e2c65",
"cleanroom_type_id": "ed5638c4-f25f-4976-ba0a-82b97d2e10ac",
"code": 3,
"date_hu": "2026-01-19T11:43:22.2382854+00:00",
"id": "cbda1ea4-68c8-4615-abd3-62764c0a4a76",
"site_id": "58e981fa-3455-4b1d-a280-15949805f668",
"wash_count": 6,
"position": 1,
"pc_id": "07f46664-aec8-4523-bfc7-545ef390b249"
}
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>6b464380-bc8c-4e76-9e1b-926b373e2c65</bag_status_id> <cleanroom_type_id>ed5638c4-f25f-4976-ba0a-82b97d2e10ac</cleanroom_type_id> <code>3</code> <date_hu>2026-01-19T11:43:22.2382854+00:00</date_hu> <id>cbda1ea4-68c8-4615-abd3-62764c0a4a76</id> <pc_id>07f46664-aec8-4523-bfc7-545ef390b249</pc_id> <position>1</position> <site_id>58e981fa-3455-4b1d-a280-15949805f668</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:
"3c687947-b8ca-4ccb-b341-5f51a837d802"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3c687947-b8ca-4ccb-b341-5f51a837d802</guid>