diff --git a/ui-ngx/src/app/core/http/iot-hub-api.service.ts b/ui-ngx/src/app/core/http/iot-hub-api.service.ts index ef1fce640e..c6ecd701cd 100644 --- a/ui-ngx/src/app/core/http/iot-hub-api.service.ts +++ b/ui-ngx/src/app/core/http/iot-hub-api.service.ts @@ -114,12 +114,12 @@ export class IotHubApiService { public registerDeviceInstall( versionId: string, - descriptor: { createdEntityIds: { entityType: string; id: string }[]; dashboardId?: { id: string } }, + descriptor: { type?: string; createdEntityIds: { entityType: string; id: string }[]; dashboardId?: { id: string } }, config?: IotHubRequestConfig ): Observable { return this.http.post( `/api/iot-hub/device/register?versionId=${versionId}`, - descriptor, + { type: 'DEVICE', ...descriptor }, { params: this.buildParams(config) } ); }