Creates an asset for the authenticated tenant. The request body is validated with createAssetWithExtensionSchema; client_id, asset_type, asset_tag, name, and status are required. AssetService.create writes assets.tenant from the request context, inserts the asset, optionally upserts asset-type-specific extension_data, publishes an ASSET_CREATED event, and returns getWithDetails with HATEOAS links. In the current route wiring, req.context may be absent because no route-level API-key auth wrapper sets it, causing a 500 before creation.
Content type: application/json · schema AssetCreateRequest
workstationnetwork_deviceservermobile_deviceprinterunknownSuccess response 201 · schema AssetResourceResponse
trueworkstationnetwork_deviceservermobile_deviceprinterunknownno_warrantyexpiredexpiring_soonactive