POST v1/product

Creates a new product for the authenticated user

Request Information

URI Parameters

None.

Body Parameters

Information about a new product

NewProductModel
NameDescriptionTypeAdditional Information
ProductName

Name of the product

string

Required.

ProductCode

Product Code defined by you (optional, but Product Name with Product Code should always be unique)

string

None.

ProductFamily

Product Family Name

string

None.

Description

Long description of the product

string

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "ProductName": "sample string 1",
  "ProductCode": "sample string 2",
  "ProductFamily": "sample string 3",
  "Description": "sample string 4"
}

application/xml, text/xml

Sample:
<NewProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAPTA.Domain.ViewModel.v1">
  <Description>sample string 4</Description>
  <ProductCode>sample string 2</ProductCode>
  <ProductFamily>sample string 3</ProductFamily>
  <ProductName>sample string 1</ProductName>
</NewProductModel>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.