POST api/Product/Save

Save New/Edit Product

Request Information

Parameters

NameDescriptionAdditional information
product
product

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "ExternalKey": "sample string 3",
  "DefaultProduct": true,
  "Id": 5,
  "Inserted": "2025-06-25T19:45:12.7287061-03:00"
}

text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System.OneToOne.Common.Model.Entities">
  <Id xmlns="http://schemas.datacontract.org/2004/07/System.OneToOne.Common.Model.Core">5</Id>
  <Inserted xmlns="http://schemas.datacontract.org/2004/07/System.OneToOne.Common.Model.Core">2025-06-25T19:45:12.7287061-03:00</Inserted>
  <DefaultProduct>true</DefaultProduct>
  <Description>sample string 2</Description>
  <ExternalKey>sample string 3</ExternalKey>
  <Name>sample string 1</Name>
</Product>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'Product'.