Créer et modifier des profils d'imprimante et de configuration
POST /v3/printers/
Créer une imprimante.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ printers ]
Request body:
{
"name": "string",
"ipAddress": "string",
"notes": "string",
"type": "local",
"enforcedModel": "string",
"configurationId": 0
}
Response body:
{
"id": 0,
"name": "string",
"state": "active",
"mode": "online",
"ipAddress": "string",
"serialNumber": "string",
"mac": "string",
"terminalId": "string",
"brand": "string",
"model": "string",
"notes": "string",
"location": "string",
"enforcedModel": "string",
"configurationId": 0
}
GET /v3/printers/configurationProfiles
Obtenir la liste des profils de configuration de l'imprimante.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ printers ]
Response body:
{
"profiles": [
{
"id": 0,
"name": "string",
"terminalType": "string",
"automaticConfiguration": true,
"loginMethod": {
"twoFactor": true,
"methods": [
"pin"
]
},
"coverageAccounting": true,
"faxPresent": true,
"useServerHostname": true,
"ipFilters": true,
"guestLoginEnabled": true,
"idleTimeout": 0
}
],
"count": 0
}
POST /v3/printers/configurationProfiles
Créer des profils de configuration.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ printers ]
Request body:
{
"profiles": [
{
"name": "string",
"terminal": true,
"automaticConfiguration": true,
"loginMethod": {
"twoFactor": true,
"methods": [
"pin"
]
},
"faxPresent": true,
"ipFilters": true,
"languageSelectionEnabled": true,
"numericKeyboardEnabled": true,
"cardReader": "string",
"adminUser": "string",
"adminPwd": "string",
"idleTimeout": 0
}
]
}
Response body:
{
"profiles": [
{
"id": 0,
"name": "string",
"terminalType": "string",
"automaticConfiguration": true,
"loginMethod": {
"twoFactor": true,
"methods": [
"pin"
]
},
"coverageAccounting": true,
"faxPresent": true,
"useServerHostname": true,
"ipFilters": true,
"guestLoginEnabled": true,
"idleTimeout": 0
}
],
"count": 0
}
DELETE /v3/printers/configurationProfiles/{id}
Supprimer le profil de configuration.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ printers ]