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": "7f4eee41-27ff-44d8-a1ec-f05dc6ae3e8e",
"id": "14f492d7-0e24-4f44-9527-98910144468e",
"item_wash_max": 1,
"name": "sample string 5",
"remark": "sample string 6",
"selected_nameplate_id": "b8778f47-0190-477d-a5cf-94947698a916",
"selected_sticker_id": "1b788043-ab69-406d-baa5-c607bf0f2e7f"
}
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>7f4eee41-27ff-44d8-a1ec-f05dc6ae3e8e</contract_id> <id>14f492d7-0e24-4f44-9527-98910144468e</id> <item_wash_max>1</item_wash_max> <name>sample string 5</name> <remark>sample string 6</remark> <selected_nameplate_id>b8778f47-0190-477d-a5cf-94947698a916</selected_nameplate_id> <selected_sticker_id>1b788043-ab69-406d-baa5-c607bf0f2e7f</selected_sticker_id> </department>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"b5d245c1-58c2-4b2e-bd41-e5c49636f8b0"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">b5d245c1-58c2-4b2e-bd41-e5c49636f8b0</guid>