PUT category/update

Updates an existing Categories

Request Information

URI Parameters

None.

Body Parameters

CategoriesUpdateRequest object contains the fields to be updated

CategoryUpdateRequest
NameDescriptionTypeAdditional information
CategoryId

integer

None.

SAPCategoryId

integer

None.

LocalCode

string

None.

Description

string

None.

SpendLimit

decimal number

None.

CurrencyId

string

None.

OfficeId

integer

None.

CategoryTypeId

integer

None.

CategoryGroupId

integer

None.

UsefulYears

integer

None.

Policy

string

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryId": 1,
  "SAPCategoryId": 2,
  "LocalCode": "sample string 3",
  "Description": "sample string 4",
  "SpendLimit": 5.0,
  "CurrencyId": "sample string 6",
  "OfficeId": 7,
  "CategoryTypeId": 8,
  "CategoryGroupId": 9,
  "UsefulYears": 10,
  "Policy": "sample string 11",
  "IsActive": true
}

application/xml, text/xml

Sample:
<CategoryUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects.OrganizationObjects">
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects">true</IsActive>
  <CategoryGroupId>9</CategoryGroupId>
  <CategoryTypeId>8</CategoryTypeId>
  <CurrencyId>sample string 6</CurrencyId>
  <Description>sample string 4</Description>
  <LocalCode>sample string 3</LocalCode>
  <OfficeId>7</OfficeId>
  <Policy>sample string 11</Policy>
  <SAPCategoryId>2</SAPCategoryId>
  <SpendLimit>5</SpendLimit>
  <UsefulYears>10</UsefulYears>
  <CategoryId>1</CategoryId>
</CategoryUpdateRequest>

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

Response Information

Resource Description

CategoriesUpdateResponse

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.