PUT api/Configuration/CostCenters
Create a new Cost Center
Request Information
URI Parameters
None.
Body Parameters
The Cost Center to create
CostCenterPutName | Description | Type | Additional information |
---|---|---|---|
Code |
The new cost center code |
string |
Required Matching regular expression pattern: ^[^\.]+$ Max length: 20 |
Description |
The description of the cost center |
string |
Required Max length: 50 |
ParentCode |
The parent node code |
string |
Max length: 20 |
Request Formats
Sample:
{ "Code": "sample string 1", "Description": "sample string 2", "ParentCode": "sample string 3" }
Sample:
<CostCenterPut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <Code>sample string 1</Code> <Description>sample string 2</Description> <ParentCode>sample string 3</ParentCode> </CostCenterPut>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ParentCode" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
The new Cost Center code
stringResponse Formats
Sample:
"sample string 1"
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--