POST api/bagapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

BagViewModel
NameDescriptionTypeAdditional 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": "de6c9aa4-654e-411d-a57f-8cae97222e3d",
  "cleanroom_type_id": "c64ae771-e0d3-489f-8c6d-ae4fdda90c56",
  "code": 3,
  "date_hu": "2026-01-19T11:13:22.353322+00:00",
  "id": "1b89f7fb-3b5d-42db-89b3-b0b59429ec99",
  "site_id": "7d098c67-1ffd-46d3-ace5-7815282c898d",
  "wash_count": 6,
  "position": 7,
  "pc_id": "a8c944e0-35ba-4a49-be76-7a74ae7e170c"
}

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>de6c9aa4-654e-411d-a57f-8cae97222e3d</bag_status_id>
  <cleanroom_type_id>c64ae771-e0d3-489f-8c6d-ae4fdda90c56</cleanroom_type_id>
  <code>3</code>
  <date_hu>2026-01-19T11:13:22.353322+00:00</date_hu>
  <id>1b89f7fb-3b5d-42db-89b3-b0b59429ec99</id>
  <pc_id>a8c944e0-35ba-4a49-be76-7a74ae7e170c</pc_id>
  <position>7</position>
  <site_id>7d098c67-1ffd-46d3-ace5-7815282c898d</site_id>
  <wash_count>6</wash_count>
</bag>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BagViewModel'.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"4f1469af-c4d9-41c6-9f3f-617d3a0384f9"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4f1469af-c4d9-41c6-9f3f-617d3a0384f9</guid>