POST api/{database}/CostCentre
Creates a new CostCentre with the specified values
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
value | The CostCentre with the updated values. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "messages": [], "canChange": true, "cannotChangeReason": "sample string 2", "costCentreId": "sample string 3", "createdByUserId": "sample string 4", "dateCreated": "sample string 5", "description": "sample string 6", "isActive": true, "shortName": "sample string 8" }
application/xml, text/xml
Sample:
<CostCentre xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Financial.Edit"> <CanChange>true</CanChange> <CannotChangeReason>sample string 2</CannotChangeReason> <CostCentreId>sample string 3</CostCentreId> <CreatedByUserId>sample string 4</CreatedByUserId> <DateCreated>sample string 5</DateCreated> <Description>sample string 6</Description> <IsActive>true</IsActive> <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" /> <ShortName>sample string 8</ShortName> </CostCentre>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "messages": [], "canChange": true, "cannotChangeReason": "sample string 2", "costCentreId": "sample string 3", "createdByUserId": "sample string 4", "dateCreated": "sample string 5", "description": "sample string 6", "isActive": true, "shortName": "sample string 8" }
application/xml, text/xml
Sample:
<CostCentre xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Financial.Edit"> <CanChange>true</CanChange> <CannotChangeReason>sample string 2</CannotChangeReason> <CostCentreId>sample string 3</CostCentreId> <CreatedByUserId>sample string 4</CreatedByUserId> <DateCreated>sample string 5</DateCreated> <Description>sample string 6</Description> <IsActive>true</IsActive> <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" /> <ShortName>sample string 8</ShortName> </CostCentre>