POST api/CostCenter/Update

Request Information

URI Parameters

None.

Body Parameters

CustomCostCenter
NameDescriptionTypeAdditional information
CostCenterId

integer

None.

CostCenter

string

None.

CostCenterCode

string

None.

Description

string

None.

CompanyCode

string

None.

Year

integer

None.

Active

boolean

None.

CreatedBy

integer

None.

CreatedDate

string

None.

ModifiedBy

integer

None.

ModifiedDate

string

None.

userPrincipalName

string

None.

connectionString

string

None.

SecretId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CostCenterId": 1,
  "CostCenter": "sample string 1 : sample string 2",
  "CostCenterCode": "sample string 1",
  "Description": "sample string 2",
  "CompanyCode": "sample string 3",
  "Year": 4,
  "Active": true,
  "CreatedBy": 1,
  "CreatedDate": "sample string 5",
  "ModifiedBy": 1,
  "ModifiedDate": "sample string 6",
  "userPrincipalName": "sample string 7",
  "connectionString": "sample string 8",
  "SecretId": null
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

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 'CustomCostCenter'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.