POST api/Product
Create a product.
Request Information
URI Parameters
None.
Body Parameters
CreateProductModel| Name | Description | Type | Additional information |
|---|---|---|---|
| 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:
{
"Name": "sample string 1",
"Code": "sample string 2",
"Abbreviation": "sample string 3",
"Active": true,
"Exempt": true,
"TrustArcFormId": "e9987b34-a3e5-471b-b45e-4e0adac6cb79",
"ClientSystemId": "6c799bb7-12b8-4374-9f28-6fd1fc8d6236",
"IDologyEnterpriseId": "9950e7d4-6f58-4f7b-9022-f6b0924d6b3f",
"SubCategoryId": "1779dc18-f67d-4cc3-9fe0-5f2f4af64c4f",
"ModifiedBy": "sample string 6"
}
text/xml
Sample:
<CreateProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Privacy.Proc.API.Models.Product"> <Abbreviation>sample string 3</Abbreviation> <Active>true</Active> <ClientSystemId>6c799bb7-12b8-4374-9f28-6fd1fc8d6236</ClientSystemId> <Code>sample string 2</Code> <Exempt>true</Exempt> <IDologyEnterpriseId>9950e7d4-6f58-4f7b-9022-f6b0924d6b3f</IDologyEnterpriseId> <ModifiedBy>sample string 6</ModifiedBy> <Name>sample string 1</Name> <SubCategoryId>1779dc18-f67d-4cc3-9fe0-5f2f4af64c4f</SubCategoryId> <TrustArcFormId>e9987b34-a3e5-471b-b45e-4e0adac6cb79</TrustArcFormId> </CreateProductModel>
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>