Claim Inventory Item
POST/api/v1/device-registry/inventory/:inventory_id/claim
Superadmin completes onboarding for a unit that will never call /claim
itself (AZD-144).
POST /claim above is for a unit whose owner signs in and claims it —
every stream player, and every transmitter reached through flows A/B/C
(§3.1 of device-registry-unification-implementation-plan.md). Flow D is
different: the physical unit only ever calls /announce
(api/v1/endpoints/mosque_devices.py), so once a Super Admin promotes its
announcement into device_inventory (/announcements/{id}/promote
above), nothing would otherwise turn that inventory row into a devices
row at all. This is that missing step — same core/device_claim.py:claim()
transaction, called on the promoted serial/MAC on the admin's behalf
rather than the unit's own.
Request
Responses
- 201
- 422
Successful Response
Validation Error