PUT api/Product

Request Information

URI Parameters

None.

Body Parameters

ProductViewModel
NameDescriptionTypeAdditional 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:04:55.3690016-08:00",
  "Deleted": true,
  "Ingredients": "sample string 6",
  "AverageWeight": 1,
  "RecommendedFor": "sample string 7",
  "LogoFileStream": "QEA=",
  "LogoPath": "sample string 8",
  "LogoFileName": "702e68ac-4180-4126-b30b-8c63f4008249"
}

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:04:55.3690016-08:00</CreationDate>
  <Deleted>true</Deleted>
  <Description>sample string 3</Description>
  <ID>1</ID>
  <Ingredients>sample string 6</Ingredients>
  <LogoFileName>702e68ac-4180-4126-b30b-8c63f4008249</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

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.