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": "7fb46b75-6c48-4819-be33-10a77e57859a",
  "delay_between_scans": 1,
  "id": "b6f2e1f2-ec0e-4c2e-be90-c191253b3cd9",
  "item_wash_max": 1,
  "name": "sample string 5",
  "remark": "sample string 6",
  "selected_nameplate_id": "139e3084-1b82-49d1-8c32-93ce44c01c4b",
  "selected_sticker_id": "0f270b78-a69d-4195-990b-c18298224654"
}

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>7fb46b75-6c48-4819-be33-10a77e57859a</contract_id>
  <delay_between_scans>1</delay_between_scans>
  <id>b6f2e1f2-ec0e-4c2e-be90-c191253b3cd9</id>
  <item_wash_max>1</item_wash_max>
  <name>sample string 5</name>
  <remark>sample string 6</remark>
  <selected_nameplate_id>139e3084-1b82-49d1-8c32-93ce44c01c4b</selected_nameplate_id>
  <selected_sticker_id>0f270b78-a69d-4195-990b-c18298224654</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:
"c49ccb9f-6898-4675-b271-c9d3f0a860cf"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c49ccb9f-6898-4675-b271-c9d3f0a860cf</guid>