PUT api/PrinterAPI/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Printer
NameDescriptionTypeAdditional information
ShareName

string

None.

PrinterType

integer

None.

CodePage

integer

None.

CharsPerLine

integer

None.

PageHeight

integer

None.

CustomPrinterName

string

None.

CustomPrinterData

string

None.

DepartmentId

integer

None.

IsTicketPrinter

boolean

None.

IsTextPrinter

boolean

None.

IsHtmlPrinter

boolean

None.

IsPortPrinter

boolean

None.

IsDemoPrinter

boolean

None.

IsWindowsPrinter

boolean

None.

IsCustomPrinter

boolean

None.

IsRawPrinter

boolean

None.

Name

string

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ShareName": "sample string 1",
  "PrinterType": 2,
  "CodePage": 3,
  "CharsPerLine": 4,
  "PageHeight": 5,
  "CustomPrinterName": "sample string 6",
  "CustomPrinterData": "sample string 7",
  "DepartmentId": 8,
  "IsTicketPrinter": false,
  "IsTextPrinter": false,
  "IsHtmlPrinter": true,
  "IsPortPrinter": false,
  "IsDemoPrinter": false,
  "IsWindowsPrinter": false,
  "IsCustomPrinter": false,
  "IsRawPrinter": false,
  "Name": "sample string 9",
  "Id": 10
}

application/xml, text/xml

Sample:
<Printer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DCubeHotelDomain.Domain.Models.Settings">
  <Id xmlns="http://schemas.datacontract.org/2004/07/DCubeHotelInfrastructureData">10</Id>
  <Name xmlns="http://schemas.datacontract.org/2004/07/DCubeHotelInfrastructureData">sample string 9</Name>
  <CharsPerLine>4</CharsPerLine>
  <CodePage>3</CodePage>
  <CustomPrinterData>sample string 7</CustomPrinterData>
  <CustomPrinterName>sample string 6</CustomPrinterName>
  <DepartmentId>8</DepartmentId>
  <PageHeight>5</PageHeight>
  <PrinterType>2</PrinterType>
  <ShareName>sample string 1</ShareName>
</Printer>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.