PUT api/SubCategory

Updates a product.

Request Information

URI Parameters

None.

Body Parameters

UpdateSubCategoryModel
NameDescriptionTypeAdditional information
Id

SubCategory's unique identifier. Only used to find the SubCategory, not to be updated.

globally unique identifier

None.

Name

The product name as the user will see it.

string

Required

Code

The code.

string

Required

Abbreviation

The Abbreviation.

string

Required

Active

Only active products shown to end users. Required.

boolean

Required

ModifiedBy

An identifier for the user that altered this SubCategory.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Id": "cbf19fb5-7f4d-4985-a77b-7efa51a4598d",
  "Name": "sample string 2",
  "Code": "sample string 3",
  "Abbreviation": "sample string 4",
  "Active": true,
  "ModifiedBy": "sample string 5"
}

text/xml

Sample:
<UpdateSubCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Privacy.Proc.API.Models.SubCategory">
  <Abbreviation>sample string 4</Abbreviation>
  <Active>true</Active>
  <Code>sample string 3</Code>
  <ModifiedBy>sample string 5</ModifiedBy>
  <Name>sample string 2</Name>
  <Id>cbf19fb5-7f4d-4985-a77b-7efa51a4598d</Id>
</UpdateSubCategoryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>