PUT api/Product
Updates a product.
Request Information
URI Parameters
None.
Body Parameters
UpdateProductModelName | Description | Type | Additional information |
---|---|---|---|
Id |
Product's unique identifier. Only used to find the product, not to be updated. |
globally unique identifier |
None. |
Name |
The product name as the user will see it. |
string |
Required |
Code |
I don't know! |
string |
Required |
Abbreviation |
Not really sure, for the most part it looks the same as Name. |
string |
Required |
Active |
Only active products shown to end users. Required. |
boolean |
Required |
Exempt |
Exempt products don't apply to CCPa law. Required. |
boolean |
Required |
TrustArcFormId |
Not required. |
globally unique identifier |
None. |
ClientSystemId |
Required. |
globally unique identifier |
Required |
IDologyEnterpriseId |
Required. |
globally unique identifier |
Required |
SubCategoryId |
Not required. |
globally unique identifier |
None. |
ModifiedBy |
An identifier for the user that altered this product. |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "Id": "107104d5-b18b-4da3-88df-637ab1961454", "Name": "sample string 2", "Code": "sample string 3", "Abbreviation": "sample string 4", "Active": true, "Exempt": true, "TrustArcFormId": "d345a8de-9efc-4946-ba5b-144c0abd83f6", "ClientSystemId": "4e67d501-843d-4150-86e0-f7fe11e77fdc", "IDologyEnterpriseId": "19835aeb-1cbd-471f-8a9d-8cf165235817", "SubCategoryId": "4849673d-bfa9-439c-acf3-707e285e8726", "ModifiedBy": "sample string 7" }
text/xml
Sample:
<UpdateProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Privacy.Proc.API.Models.Product"> <Abbreviation>sample string 4</Abbreviation> <Active>true</Active> <ClientSystemId>4e67d501-843d-4150-86e0-f7fe11e77fdc</ClientSystemId> <Code>sample string 3</Code> <Exempt>true</Exempt> <IDologyEnterpriseId>19835aeb-1cbd-471f-8a9d-8cf165235817</IDologyEnterpriseId> <ModifiedBy>sample string 7</ModifiedBy> <Name>sample string 2</Name> <SubCategoryId>4849673d-bfa9-439c-acf3-707e285e8726</SubCategoryId> <TrustArcFormId>d345a8de-9efc-4946-ba5b-144c0abd83f6</TrustArcFormId> <Id>107104d5-b18b-4da3-88df-637ab1961454</Id> </UpdateProductModel>
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>