PUT api/SubCategory
Updates a product.
Request Information
URI Parameters
None.
Body Parameters
UpdateSubCategoryModelName | Description | Type | Additional 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": "d744794c-5e10-422b-97d1-f733d2ac8401", "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>d744794c-5e10-422b-97d1-f733d2ac8401</Id> </UpdateSubCategoryModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>