POST api/admin/Products

Request Information

URI Parameters

None.

Body Parameters

ProductInstanceToAddDTO
NameDescriptionTypeAdditional information
ProductionDate

date

None.

ImageUrl

string

None.

SerialNumber

string

None.

LastUpdateDate

date

None.

ProductName

string

None.

ProductDescription

string

None.

ProductFamilyCode

string

None.

ProductFamilyName

string

None.

ProductSku

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductionDate": "2024-11-26T07:38:41.5111732Z",
  "ImageUrl": "sample string 2",
  "SerialNumber": "sample string 3",
  "LastUpdateDate": "2024-11-26T07:38:41.5111732Z",
  "ProductName": "sample string 5",
  "ProductDescription": "sample string 6",
  "ProductFamilyCode": "sample string 7",
  "ProductFamilyName": "sample string 8",
  "ProductSku": "sample string 9"
}

application/xml, text/xml

Sample:
<ProductInstanceToAddDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.Models.DTOs">
  <ImageUrl>sample string 2</ImageUrl>
  <LastUpdateDate>2024-11-26T07:38:41.5111732Z</LastUpdateDate>
  <ProductDescription>sample string 6</ProductDescription>
  <ProductFamilyCode>sample string 7</ProductFamilyCode>
  <ProductFamilyName>sample string 8</ProductFamilyName>
  <ProductName>sample string 5</ProductName>
  <ProductSku>sample string 9</ProductSku>
  <ProductionDate>2024-11-26T07:38:41.5111732Z</ProductionDate>
  <SerialNumber>sample string 3</SerialNumber>
</ProductInstanceToAddDTO>

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.