POST api/pmgPrinter
Insert a new record into the Printer table.
Request Information
URI Parameters
None.
Body Parameters
pmgPrinterDb| Name | Description | Type | Additional information |
|---|---|---|---|
| PrinterID | integer |
None. |
|
| PrinterName | string |
Required Max length: 75 |
|
| PrinterTypeID | integer |
Required |
|
| IsActive | boolean |
None. |
|
| WarehouseID | integer |
None. |
|
| WarehouseName | string |
Max length: 50 |
|
| results | Collection of ValidationResult |
None. |
Request Formats
application/json, text/json
Sample:
{
"results": null,
"PrinterID": 1,
"PrinterName": "sample string 2",
"PrinterTypeID": 3,
"IsActive": true,
"WarehouseID": 5,
"WarehouseName": "sample string 6"
}
application/xml, text/xml
Sample:
<pmgPrinterDb 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> <PrinterID>1</PrinterID> <PrinterName>sample string 2</PrinterName> <PrinterTypeID>3</PrinterTypeID> <WarehouseID>5</WarehouseID> <WarehouseName>sample string 6</WarehouseName> </pmgPrinterDb>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
pmgPrinterDb| Name | Description | Type | Additional information |
|---|---|---|---|
| PrinterID | integer |
None. |
|
| PrinterName | string |
Required Max length: 75 |
|
| PrinterTypeID | integer |
Required |
|
| IsActive | boolean |
None. |
|
| WarehouseID | integer |
None. |
|
| WarehouseName | string |
Max length: 50 |
|
| results | Collection of ValidationResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"results": null,
"PrinterID": 1,
"PrinterName": "sample string 2",
"PrinterTypeID": 3,
"IsActive": true,
"WarehouseID": 5,
"WarehouseName": "sample string 6"
}
application/xml, text/xml
Sample:
<pmgPrinterDb 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> <PrinterID>1</PrinterID> <PrinterName>sample string 2</PrinterName> <PrinterTypeID>3</PrinterTypeID> <WarehouseID>5</WarehouseID> <WarehouseName>sample string 6</WarehouseName> </pmgPrinterDb>