public Task<DeviceDto> CreateDevice(
DeviceDto device,
UserSessionData createdBy,
CancellationToken cancellationToken = default
)| UnauthorizedAccessException | Thrown if the user createdBy did not have the correct permissions |
| ArgumentNullException | Thrown if device or createdBy was |
| ResourceInvalidStateException | Thrown if device is in an invalid state. |