From 47753c4cdabdbac3ae8e2950061aa9e1fb874adc Mon Sep 17 00:00:00 2001 From: Rajasekharan Vengalil Date: Thu, 30 Jul 2020 23:15:29 -0700 Subject: [PATCH] Rename schema prop name for cg body --- .../2020-06-15/examples/iothub_createconsumergroup.json | 3 ++- .../Microsoft.Devices/stable/2020-06-15/iothub.json | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-06-15/examples/iothub_createconsumergroup.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-06-15/examples/iothub_createconsumergroup.json index 15a61900ca59..0d977b3a70ba 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-06-15/examples/iothub_createconsumergroup.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-06-15/examples/iothub_createconsumergroup.json @@ -5,7 +5,8 @@ "api-version": "2020-06-15", "eventHubEndpointName": "events", "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", - "name": { + "name": "test", + "consumerGroupBody": { "properties": { "name": "test" } diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-06-15/iothub.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-06-15/iothub.json index 21bc6617f330..634aea7c600b 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-06-15/iothub.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-06-15/iothub.json @@ -620,9 +620,16 @@ }, { "name": "name", - "in": "body", + "in": "path", "description": "The name of the consumer group to add.", "required": true, + "type": "string" + }, + { + "name": "consumerGroupBody", + "in": "body", + "description": "The consumer group to add.", + "required": true, "schema": { "$ref": "#/definitions/EventHubConsumerGroupBodyDescription" }