Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

Remove a printer

Admin only. Soft deletes a printer and hides it from every listing. Deleting the default promotes another first, and the last printer in a branch is refused.

DELETE/api/v1/printing/printers/{printerId}
Authorization
AuthorizationBearer token (JWT) · headerrequired

JWT from POST /api/v1/auth/login sent as Authorization Bearer.

Path parameters
printerIdstringrequired

The printer being removed.

Responses
204

Printer removed

400

The branch would be left without a default printer

detailstringrequired
401

Not authenticated

detailstringrequired
403

Caller is not an admin, or the branch is outside your ownership

detailstringrequired
404

Printer not found

detailstringrequired
Try it
Server
Authorization
Parameters
Request
curl -X DELETE 'http://localhost:8000/api/v1/printing/printers/string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
Printer removed