PUT V2/odata/CostCenter({key})

Updates CostCenter entity

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

integer

Required

Body Parameters

QicsUnity.Api.Areas.V2.Models.CostCenter
NameDescriptionTypeAdditional information
CostCenterId

Gets or sets the CostCenterId

integer

None.

Code

Gets or sets cost center code

string

None.

Name

Gets or sets cost center name

string

None.

CompanyId

Gets or sets CompanyId

integer

None.

CompanyName

Gets or sets Company.CompanyName

string

None.

CompanyCode

Gets or sets Company.CompanyCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CostCenterId": 1,
  "Code": "sample 2",
  "Name": "sample 3",
  "CompanyId": 4,
  "CompanyName": "sample 5",
  "CompanyCode": "sample 6"
}

application/xml, text/xml

Sample:
<CostCenter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <Code>sample 2</Code>
  <CompanyCode>sample 6</CompanyCode>
  <CompanyId>4</CompanyId>
  <CompanyName>sample 5</CompanyName>
  <CostCenterId>1</CostCenterId>
  <Name>sample 3</Name>
</CostCenter>

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.