POST api/departmentapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
DepartmentViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| active | boolean |
Required |
|
| code | integer |
Required |
|
| contract_id | globally unique identifier |
Required |
|
| 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": "3f663e38-4f5e-425c-992d-34c631187e81",
"id": "9d4f32f1-1793-4f6d-bbef-ef01cc058cfb",
"item_wash_max": 1,
"name": "sample string 5",
"remark": "sample string 6",
"selected_nameplate_id": "b406e61a-3431-4564-b62a-ffd6a21b860b",
"selected_sticker_id": "60306a77-4225-40a0-971e-84933856cd91"
}
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>3f663e38-4f5e-425c-992d-34c631187e81</contract_id> <id>9d4f32f1-1793-4f6d-bbef-ef01cc058cfb</id> <item_wash_max>1</item_wash_max> <name>sample string 5</name> <remark>sample string 6</remark> <selected_nameplate_id>b406e61a-3431-4564-b62a-ffd6a21b860b</selected_nameplate_id> <selected_sticker_id>60306a77-4225-40a0-971e-84933856cd91</selected_sticker_id> </department>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"230e2dfe-de3c-4608-ae2d-f887d7a34910"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">230e2dfe-de3c-4608-ae2d-f887d7a34910</guid>