POST api/departmentItemapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
DepartmentItemViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| item_code | string |
None. |
|
| item_descriptions | Dictionary of string [key] and string [value] |
None. |
|
| selected_sticker_id | globally unique identifier |
None. |
|
| selected_nameplate_id | globally unique identifier |
None. |
|
| active | boolean |
Required |
|
| department_id | globally unique identifier |
Required |
|
| id | globally unique identifier |
None. |
|
| physical_item_id | globally unique identifier |
None. |
|
| service_item_id | globally unique identifier |
None. |
|
| item_wash_max | integer |
None. |
|
| quantity | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"item_code": "sample string 1",
"item_descriptions": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"selected_sticker_id": "5e94984f-bb71-4fbf-b33a-0130f4d0598d",
"selected_nameplate_id": "f20cc337-1d9a-48f0-b611-214f38f6b383",
"active": true,
"department_id": "69923eb1-04c1-4819-a6f6-94fd53b40ba9",
"id": "6464a50e-0efb-4b29-998e-b13f134f9208",
"physical_item_id": "04510200-c2cc-412f-bc9c-52948714e854",
"service_item_id": "efc5f4f4-27e9-4797-98f4-186539e1e6e6",
"item_wash_max": 1,
"quantity": 1
}
application/xml, text/xml
Sample:
<department_item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<active>true</active>
<department_id>69923eb1-04c1-4819-a6f6-94fd53b40ba9</department_id>
<id>6464a50e-0efb-4b29-998e-b13f134f9208</id>
<item_wash_max>1</item_wash_max>
<physical_item_id>04510200-c2cc-412f-bc9c-52948714e854</physical_item_id>
<quantity>1</quantity>
<service_item_id>efc5f4f4-27e9-4797-98f4-186539e1e6e6</service_item_id>
<item_code>sample string 1</item_code>
<item_descriptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</item_descriptions>
<selected_nameplate_id>f20cc337-1d9a-48f0-b611-214f38f6b383</selected_nameplate_id>
<selected_sticker_id>5e94984f-bb71-4fbf-b33a-0130f4d0598d</selected_sticker_id>
</department_item>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"b8f6cf3a-aaa2-49af-973a-02f2d1b5f8dd"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">b8f6cf3a-aaa2-49af-973a-02f2d1b5f8dd</guid>