POST api/printer/UpdatePrinterById?token={token}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
Required |
Body Parameters
PrinterModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| PrinterName | string |
None. |
|
| DriverName | string |
None. |
|
| Port | string |
None. |
|
| ShareName | string |
None. |
|
| PrinterModelId | integer |
None. |
|
| LastJobDate | date |
None. |
|
| Ip | string |
None. |
|
| Counter | integer |
None. |
|
| LastCounterCheckDate | date |
None. |
|
| Servers | string |
None. |
|
| Groups | string |
None. |
|
| HasJob | boolean |
None. |
|
| MustAccount | boolean |
None. |
|
| MustAccountReason | string |
None. |
|
| ValuePb | decimal number |
None. |
|
| ValueColor | decimal number |
None. |
|
| BillingRule | string |
None. |
|
| ColorRule | string |
None. |
|
| DisabledDate | date |
None. |
|
| DisabledUserId | integer |
None. |
|
| DisabledMessage | string |
None. |
|
| lastMac | string |
None. |
|
| Jobs | Collection of JobModel |
None. |
|
| JobInfo | JobInfoModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"PrinterName": "sample string 2",
"DriverName": "sample string 3",
"Port": "sample string 4",
"ShareName": "sample string 5",
"PrinterModelId": 6,
"LastJobDate": "2025-12-13T11:11:40.2784101-03:00",
"Ip": "sample string 8",
"Counter": 9,
"LastCounterCheckDate": "2025-12-13T11:11:40.2784101-03:00",
"Servers": "sample string 11",
"Groups": "sample string 12",
"HasJob": true,
"MustAccount": true,
"MustAccountReason": "sample string 15",
"ValuePb": 16.1,
"ValueColor": 17.1,
"BillingRule": "sample string 18",
"ColorRule": "sample string 19",
"DisabledDate": "2025-12-13T11:11:40.2784101-03:00",
"DisabledUserId": 21,
"DisabledMessage": "sample string 22",
"lastMac": "sample string 23",
"Jobs": [
{
"Id": 1,
"UserId": 2,
"UserName": "sample string 3",
"UserGroup": "sample string 4",
"UserEmail": "sample string 5",
"MachineName": "sample string 6",
"PrinterId": 7,
"AccountMachineId": 8,
"JobMachineId": 9,
"DriverName": "sample string 10",
"PrinterAttributes": 11,
"JobId": 12,
"IdUserGroup": 13,
"JobGroup": "sample string 14",
"JobStatus": 15,
"Document": "sample string 16",
"UsingPrinterDefaults": true,
"Color": 18,
"Duplex": true,
"Economode": true,
"TotalPages": 21,
"PagesPrinted": 22,
"PaperSize": 23,
"PaperLength": 24,
"PaperWidth": 25,
"Cost": 26.1,
"PrintDate": "2025-12-13T11:11:40.2784101-03:00",
"RecordDate": "2025-12-13T11:11:40.2784101-03:00",
"GclId": 29,
"CreationDate": "2025-12-13T11:11:40.2784101-03:00"
},
{
"Id": 1,
"UserId": 2,
"UserName": "sample string 3",
"UserGroup": "sample string 4",
"UserEmail": "sample string 5",
"MachineName": "sample string 6",
"PrinterId": 7,
"AccountMachineId": 8,
"JobMachineId": 9,
"DriverName": "sample string 10",
"PrinterAttributes": 11,
"JobId": 12,
"IdUserGroup": 13,
"JobGroup": "sample string 14",
"JobStatus": 15,
"Document": "sample string 16",
"UsingPrinterDefaults": true,
"Color": 18,
"Duplex": true,
"Economode": true,
"TotalPages": 21,
"PagesPrinted": 22,
"PaperSize": 23,
"PaperLength": 24,
"PaperWidth": 25,
"Cost": 26.1,
"PrintDate": "2025-12-13T11:11:40.2784101-03:00",
"RecordDate": "2025-12-13T11:11:40.2784101-03:00",
"GclId": 29,
"CreationDate": "2025-12-13T11:11:40.2784101-03:00"
}
],
"JobInfo": {
"JobCount": 1,
"JobCost": 2.1
}
}
application/xml, text/xml
Sample:
<PrinterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models">
<BillingRule>sample string 18</BillingRule>
<ColorRule>sample string 19</ColorRule>
<Counter>9</Counter>
<DisabledDate>2025-12-13T11:11:40.2784101-03:00</DisabledDate>
<DisabledMessage>sample string 22</DisabledMessage>
<DisabledUserId>21</DisabledUserId>
<DriverName>sample string 3</DriverName>
<Groups>sample string 12</Groups>
<HasJob>true</HasJob>
<Id>1</Id>
<Ip>sample string 8</Ip>
<JobInfo>
<JobCost>2.1</JobCost>
<JobCount>1</JobCount>
</JobInfo>
<Jobs>
<JobModel>
<AccountMachineId>8</AccountMachineId>
<Color>18</Color>
<Cost>26.1</Cost>
<CreationDate>2025-12-13T11:11:40.2784101-03:00</CreationDate>
<Document>sample string 16</Document>
<DriverName>sample string 10</DriverName>
<Duplex>true</Duplex>
<Economode>true</Economode>
<GclId>29</GclId>
<Id>1</Id>
<IdUserGroup>13</IdUserGroup>
<JobGroup>sample string 14</JobGroup>
<JobId>12</JobId>
<JobMachineId>9</JobMachineId>
<JobStatus>15</JobStatus>
<MachineName>sample string 6</MachineName>
<PagesPrinted>22</PagesPrinted>
<PaperLength>24</PaperLength>
<PaperSize>23</PaperSize>
<PaperWidth>25</PaperWidth>
<PrintDate>2025-12-13T11:11:40.2784101-03:00</PrintDate>
<PrinterAttributes>11</PrinterAttributes>
<PrinterId>7</PrinterId>
<RecordDate>2025-12-13T11:11:40.2784101-03:00</RecordDate>
<TotalPages>21</TotalPages>
<UserEmail>sample string 5</UserEmail>
<UserGroup>sample string 4</UserGroup>
<UserId>2</UserId>
<UserName>sample string 3</UserName>
<UsingPrinterDefaults>true</UsingPrinterDefaults>
</JobModel>
<JobModel>
<AccountMachineId>8</AccountMachineId>
<Color>18</Color>
<Cost>26.1</Cost>
<CreationDate>2025-12-13T11:11:40.2784101-03:00</CreationDate>
<Document>sample string 16</Document>
<DriverName>sample string 10</DriverName>
<Duplex>true</Duplex>
<Economode>true</Economode>
<GclId>29</GclId>
<Id>1</Id>
<IdUserGroup>13</IdUserGroup>
<JobGroup>sample string 14</JobGroup>
<JobId>12</JobId>
<JobMachineId>9</JobMachineId>
<JobStatus>15</JobStatus>
<MachineName>sample string 6</MachineName>
<PagesPrinted>22</PagesPrinted>
<PaperLength>24</PaperLength>
<PaperSize>23</PaperSize>
<PaperWidth>25</PaperWidth>
<PrintDate>2025-12-13T11:11:40.2784101-03:00</PrintDate>
<PrinterAttributes>11</PrinterAttributes>
<PrinterId>7</PrinterId>
<RecordDate>2025-12-13T11:11:40.2784101-03:00</RecordDate>
<TotalPages>21</TotalPages>
<UserEmail>sample string 5</UserEmail>
<UserGroup>sample string 4</UserGroup>
<UserId>2</UserId>
<UserName>sample string 3</UserName>
<UsingPrinterDefaults>true</UsingPrinterDefaults>
</JobModel>
</Jobs>
<LastCounterCheckDate>2025-12-13T11:11:40.2784101-03:00</LastCounterCheckDate>
<LastJobDate>2025-12-13T11:11:40.2784101-03:00</LastJobDate>
<MustAccount>true</MustAccount>
<MustAccountReason>sample string 15</MustAccountReason>
<Port>sample string 4</Port>
<PrinterModelId>6</PrinterModelId>
<PrinterName>sample string 2</PrinterName>
<Servers>sample string 11</Servers>
<ShareName>sample string 5</ShareName>
<ValueColor>17.1</ValueColor>
<ValuePb>16.1</ValuePb>
<lastMac>sample string 23</lastMac>
</PrinterModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>