@@ -336,7 +336,7 @@ ctech-dfe-api/
336336│ ├── problem/ # RFC 7807 Problem type + helpers
337337│ ├── middleware/
338338│ │ ├── auth.go # RS256 JWT validation, JWKS cached in Redis
339- │ │ ├── tenant.go # PyDfe -Organization-Pk header → org context
339+ │ │ ├── tenant.go # Dfe -Organization-Pk header → org context
340340│ │ └── perm.go # RBAC permission checker (OWNER/ADMIN bypass)
341341│ ├── cache/ # Redis + in-memory backends
342342│ ├── ws/ # WebSocket registry (Redis pub/sub)
@@ -507,7 +507,7 @@ response / link; DynamoDB stores only its SHA-256.
507507
508508#### Products
509509
510- Use the `PyDfe -Organization-Pk` header for org context.
510+ Use the `Dfe -Organization-Pk` header for org context.
511511
512512| Method | Endpoint | Description |
513513|--------|-----------------------|--------------------------------|
@@ -665,7 +665,7 @@ When `emit_uf='RJ'` and `cst='40'` without a configured `icms_mot_des`, the syst
665665
666666#### Vehicles
667667
668- Organization is always resolved from the ` PyDfe -Organization-Pk` header, not a path parameter.
668+ Organization is always resolved from the ` Dfe -Organization-Pk` header, not a path parameter.
669669Only ` plate ` /` plate_uf ` /` role ` are required to create a vehicle — every other field is optional
670670and is gated per doc-type/role at emission time via the requirements endpoint below. Trailers
671671are ordinary vehicle rows with ` role=trailer ` , independently selectable — not nested under a
@@ -1093,7 +1093,7 @@ app/
10931093### ApiClient (` lib/api/client.ts ` )
10941094
10951095Type-safe Axios wrapper. Holds ` access_token ` in module-level memory (never localStorage). Injects
1096- ` Authorization: Bearer {token} ` and ` PyDfe -Organization-Pk` headers on every request. On 401, calls the registered
1096+ ` Authorization: Bearer {token} ` and ` Dfe -Organization-Pk` headers on every request. On 401, calls the registered
10971097` _refreshFn ` to silently refresh via ctech-account before retrying once. The request interceptor also strips null
10981098fields from POST (create) payloads (` stripNulls ` /` isStrippableBody ` ) — see "DynamoDB storage policy — null omission".
10991099
0 commit comments