PUT api/public/CostCenter/{departmentId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| departmentId | integer |
Required |
Body Parameters
DepartmentPostDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| ManagerName | string |
None. |
|
| ManagerEmail | string |
None. |
|
| Active | boolean |
None. |
|
| OpusSettings | DepartmentOpusDTO |
None. |
|
| DepartmentParent | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"ManagerName": "sample string 2",
"ManagerEmail": "sample string 3",
"Active": true,
"OpusSettings": {
"CostCenter": "sample string 1",
"WbsElement": "sample string 2",
"GLAccount": "sample string 3"
},
"DepartmentParent": 1
}
application/xml, text/xml
Sample:
<DepartmentPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Departments">
<Active>true</Active>
<DepartmentParent>1</DepartmentParent>
<ManagerEmail>sample string 3</ManagerEmail>
<ManagerName>sample string 2</ManagerName>
<Name>sample string 1</Name>
<OpusSettings>
<CostCenter>sample string 1</CostCenter>
<GLAccount>sample string 3</GLAccount>
<WbsElement>sample string 2</WbsElement>
</OpusSettings>
</DepartmentPostDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.