Get the roll recorded for a printer
GET
/api/v1/printers/{printer_id}/roll
const url = 'https://example.com/api/v1/printers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/roll';const options = {method: 'GET', headers: {'X-Label-Hub-Key': '<X-Label-Hub-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/printers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/roll \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>'Returns the roll identity last seen by the status probe, the tape colour the operator gave it and whether the operator is still to be asked. All fields are empty until the first probe. Answers 404 for an unknown printer.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”printer_id
required
Printer Id
string format: uuid
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
RollRead
The roll recorded for a printer (GET/PUT /printers/{id}/roll).
object
media_raw
prompt_pending
Prompt Pending
True while the operator is still to be asked for the colour
boolean
Example
{ "colour": "white", "prompt_pending": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}