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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

DepartmentViewModel
NameDescriptionTypeAdditional information
active

boolean

Required

code

integer

Required

contract_id

globally unique identifier

Required

delay_between_scans

integer

None.

id

globally unique identifier

None.

item_wash_max

integer

None.

name

string

None.

remark

string

None.

selected_nameplate_id

globally unique identifier

None.

selected_sticker_id

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "active": true,
  "code": 2,
  "contract_id": "00b9edfa-74c9-419b-ad9d-d3c143052de5",
  "delay_between_scans": 1,
  "id": "8802bfd2-f17f-4247-9d93-5f203a1a7189",
  "item_wash_max": 1,
  "name": "sample string 5",
  "remark": "sample string 6",
  "selected_nameplate_id": "ed8a48d3-c9f0-4134-bc78-ae6584a9682b",
  "selected_sticker_id": "8e70739e-a475-4c0f-973f-0aeed192dff5"
}

application/xml, text/xml

Sample:
<department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <code>2</code>
  <contract_id>00b9edfa-74c9-419b-ad9d-d3c143052de5</contract_id>
  <delay_between_scans>1</delay_between_scans>
  <id>8802bfd2-f17f-4247-9d93-5f203a1a7189</id>
  <item_wash_max>1</item_wash_max>
  <name>sample string 5</name>
  <remark>sample string 6</remark>
  <selected_nameplate_id>ed8a48d3-c9f0-4134-bc78-ae6584a9682b</selected_nameplate_id>
  <selected_sticker_id>8e70739e-a475-4c0f-973f-0aeed192dff5</selected_sticker_id>
</department>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"160047c4-9ec4-474d-a4d9-8276e73e9de9"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">160047c4-9ec4-474d-a4d9-8276e73e9de9</guid>