POST api/public/CostCenter

Request Information

URI Parameters

None.

Body Parameters

DepartmentPostDTO
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DepartmentPostDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.