Skip to content

GET /serial/{serial_key}/dhr

Get Device History Record

GET
/serial/{serial_key}/dhr

Generate a device history record for a serial.

Renders a PDF Device History Record (DHR) for the serial identified by
serial_key using WeasyPrint. When include_children=True, DHRs for all
complex child serials (those with step data or sub-children) are appended in
order of product code then serial code. Returns the combined PDF as a binary
download attachment.

Emits: (direct query — no event class)
Required scope: serial:read

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Parameters

Path Parameters

serial_key*
Type
string
Required

Query Parameters

include_attachments
Type
boolean
Default
false
include_children
Type
boolean
Default
false
include_step_data
Type
boolean
Default
false

Responses

Successful Response

application/json
JSON
[
]

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.