PUT api/pmgPrinterType/{id}

Update an existing record from the PrinterType table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

pmgPrinterTypeDb
NameDescriptionTypeAdditional information
PrinterTypeID

integer

None.

PrinterTypeDescription

string

Required

Max length: 50

IsActive

boolean

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "PrinterTypeID": 1,
  "PrinterTypeDescription": "sample string 2",
  "IsActive": true
}

application/xml, text/xml

Sample:
<pmgPrinterTypeDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <IsActive>true</IsActive>
  <PrinterTypeDescription>sample string 2</PrinterTypeDescription>
  <PrinterTypeID>1</PrinterTypeID>
</pmgPrinterTypeDb>

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

Response Information

Resource Description

pmgPrinterTypeDb
NameDescriptionTypeAdditional information
PrinterTypeID

integer

None.

PrinterTypeDescription

string

Required

Max length: 50

IsActive

boolean

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "PrinterTypeID": 1,
  "PrinterTypeDescription": "sample string 2",
  "IsActive": true
}

application/xml, text/xml

Sample:
<pmgPrinterTypeDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <IsActive>true</IsActive>
  <PrinterTypeDescription>sample string 2</PrinterTypeDescription>
  <PrinterTypeID>1</PrinterTypeID>
</pmgPrinterTypeDb>