diff --git a/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json b/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json index 026faaeb4bfd..910e419744cc 100644 --- a/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json +++ b/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json @@ -96,7 +96,7 @@ "202": { "description": "Response indicating that a request has been accepted for processing. However, the processing has not been completed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorObjectResponse" } }, "default": { @@ -484,6 +484,16 @@ "type": "string" } } + }, + "ErrorObjectResponse": { + "description": "Describes the format of Error response with a wrapper object", + "type": "object", + "properties": { + "error": { + "description": "Wrapper object for error information", + "$ref": "#/definitions/ErrorResponse" + } + } } }, "parameters": { diff --git a/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json b/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json index b00db8f32156..3c94bd98b02a 100644 --- a/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json +++ b/specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json @@ -34,8 +34,10 @@ }, "202": { "body": { - "code": "aaaaaaaaaaaaaaaaaaaaaa", - "message": "aaaaaaaaaaaaaaaaaaaa" + "error": { + "code": "aaaaaaaaaaaaaaaaaaaaaa", + "message": "aaaaaaaaaaaaaaaaaaaa" + } } } }