Register or update a printer

Changed on

Registers a printer at a venue (printerId null) or rewrites one with its whole station link set; an update keeps the printer's id, stations, roles and job history. Answers CONFLICT when the identity's serial belongs to another printer of the venue, and CONFLICT with refusal addressTaken when an update moves the printer to a transport another printer of the venue holds. A new non-null ownerInstallId must name an installation of the venue, or the save answers PRECONDITION_FAILED with refusal pinUnknownDevice; a registration carrying savedFrom records that installation's link first, so it may pin the printer to itself. With foundBy, the pin and a device link follow the installation whose search answer reported the printer, and an answer that did not report it is refused with BAD_REQUEST. With serialDecision, a registration whose serial another location of the organization holds answers CONFLICT with refusal serialElsewhere for ask, deletes that printer there for move (which needs the settings-update permission on that location), and registers it here as well for share; without serialDecision it registers as before.

post/api/public/v1/printing/savePrinter

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
locationId, string required
printerId, string nullable required
name, string required
transport, union required
paperWidth, unknown required
ownerInstallId, string nullable required
printShiftReport, boolean
beepSound, boolean
autoPrintGuestBill, boolean
stationIds, string[] required
identity, object
foundBy, object
savedFrom, string
serialDecision, 'ask' | 'move' | 'share'

Response

OK

unknown required

Changes