By calling the device maintenance-mode switch interface (
/api/printer/updateEnable), a command is sent to the open platform to remotely switch the operating mode of the designated printer.enable=0enters maintenance mode (automatically pausing order intake and printing — suitable for commissioning, servicing, and fault troubleshooting);enable=1switches back to normal enabled mode (resuming order intake and printing). Note: the latest version of the cloud-printing client must be upgraded or installed to use this feature.
Interface Information
- Endpoint:
https://www.colorpark.cn/api/printer/updateEnable - Method: POST
Request Parameters
| Parameter | Example Value | Data Type | Required | Description |
|---|---|---|---|---|
printer_id |
500001 | string | Yes | Unique device ID assigned to the printer; each printer is assigned a distinct number. |
once |
8305 | string | Yes | Random value used when generating the signature (nonce). |
time |
1646790335 | string | Yes | Timestamp used when generating the signature. |
sign |
9ce3ce7a3fccaf3d7715bd7e9bb1dc1c | string | Yes | Generated signature. For the generation method, please refer to the Bottom-Level Methods [Basic Support] → Generate Signature section. |
Response Result
| Field | Data Type | Example Value | Description |
|---|---|---|---|
code |
string | 0 | Status code: 0 success, 400 failure. |
msg |
string | Operation successful | Prompt message. |
data |
array | — | Returned data. |
data.printer_id |
int | 1000926 | Device ID. |
data.enable |
int | 0 | 0 — device under maintenance; 1 — normally enabled. |
If a device encounters an unsolvable problem during commissioning, contact the cloud-printing lead to troubleshoot and find a solution. Contact details: Phone: 137-5177-4454 (WeChat same number) Email: info@ColorPark.cn