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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

DepartmentItemViewModel
NameDescriptionTypeAdditional 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": "3469aea5-108c-4568-9fac-a456bfc7e311",
  "selected_nameplate_id": "66f11741-51c7-4588-9a93-fa7ce18a607d",
  "active": true,
  "department_id": "5fa265a0-7b96-44b7-ad6f-01e6c06ed302",
  "id": "0b089e37-38df-4e33-a7ee-15a99eea5c40",
  "physical_item_id": "d5264607-5752-40e8-9b27-37dfe00f1e07",
  "service_item_id": "efbd4791-793c-4b2e-bd3d-1c89639b1534",
  "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>5fa265a0-7b96-44b7-ad6f-01e6c06ed302</department_id>
  <id>0b089e37-38df-4e33-a7ee-15a99eea5c40</id>
  <item_wash_max>1</item_wash_max>
  <physical_item_id>d5264607-5752-40e8-9b27-37dfe00f1e07</physical_item_id>
  <quantity>1</quantity>
  <service_item_id>efbd4791-793c-4b2e-bd3d-1c89639b1534</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>66f11741-51c7-4588-9a93-fa7ce18a607d</selected_nameplate_id>
  <selected_sticker_id>3469aea5-108c-4568-9fac-a456bfc7e311</selected_sticker_id>
</department_item>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"71c62bea-9d8e-4f61-89cc-d93d1351f32c"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">71c62bea-9d8e-4f61-89cc-d93d1351f32c</guid>