POST api/Product
Request Information
URI Parameters
None.
Body Parameters
ProductViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| Price | decimal number |
None. |
|
| CategoryID | integer |
None. |
|
| CreationDate | date |
None. |
|
| Deleted | boolean |
None. |
|
| Ingredients | string |
None. |
|
| AverageWeight | integer |
None. |
|
| RecommendedFor | string |
None. |
|
| LogoFileStream | Collection of byte |
None. |
|
| LogoPath | string |
None. |
|
| LogoFileName | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"Price": 1.1,
"CategoryID": 1,
"CreationDate": "2026-01-09T01:07:54.1571483-08:00",
"Deleted": true,
"Ingredients": "sample string 6",
"AverageWeight": 1,
"RecommendedFor": "sample string 7",
"LogoFileStream": "QEA=",
"LogoPath": "sample string 8",
"LogoFileName": "f9ac69f6-4ca8-4ed6-96d4-8a3fa4c3e91b"
}
application/xml, text/xml
Sample:
<ProductViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EmySoap.API.Models"> <AverageWeight>1</AverageWeight> <CategoryID>1</CategoryID> <CreationDate>2026-01-09T01:07:54.1571483-08:00</CreationDate> <Deleted>true</Deleted> <Description>sample string 3</Description> <ID>1</ID> <Ingredients>sample string 6</Ingredients> <LogoFileName>f9ac69f6-4ca8-4ed6-96d4-8a3fa4c3e91b</LogoFileName> <LogoFileStream>QEA=</LogoFileStream> <LogoPath>sample string 8</LogoPath> <Name>sample string 2</Name> <Price>1.1</Price> <RecommendedFor>sample string 7</RecommendedFor> </ProductViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.