Create Device
POST/api/portals/createdevice
Tier: Internal — subject to change without notice.
Creates a reader or IO device with its sensors, actuators, and antennas, standalone (not yet attached to a portal).
The device is attached to a portal later via PortalController.UpdatePortal(...). The TemplateId's extended
properties are the reader configuration values (e.g. IP address, reader mode, power settings — see
Enums.ReaderMode for the reader-mode values). DeviceType and ConnectionType are supplied as
strings and are not validated against their enums.
Request
Responses
- 200
- 400
- 401
- 403
Returns the created device, re-fetched after save. See PortalDtos.DeviceDetailDto. Initial Status is Offline; component statuses are Unknown.
Name and ConnectionType are required; extended properties must be unique and type-valid for the
device's sys-template. TemplateId must be the sys device template matching the device's
Enums.DeviceType; an unknown TemplateId currently surfaces as OperationFailed rather than a clean
field-level validation error.
Caller is not authenticated.
Caller does not have Create permission on the Portal module.