PUT api/Products/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

ProductModel
NameDescriptionTypeAdditional information
productId

globally unique identifier

Required

productCode

string

Required

Max length: 8

productName

string

Required

Max length: 25

productDescription

string

Required

Max length: 150

specimenType

SpecimenType

Required

Request Formats

application/json, text/json

Sample:
{
  "productId": "b2066ae0-1a96-4cb6-a657-66295abc7fc9",
  "productCode": "sample string 2",
  "productName": "sample string 3",
  "productDescription": "sample string 4",
  "specimenType": 0
}

application/xml, text/xml

Sample:
<ProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.Api.Models">
  <productCode>sample string 2</productCode>
  <productDescription>sample string 4</productDescription>
  <productId>b2066ae0-1a96-4cb6-a657-66295abc7fc9</productId>
  <productName>sample string 3</productName>
  <specimenType>Blood</specimenType>
</ProductModel>

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 'ProductModel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.