ARM Error
ARM OpenAPI(swagger) specs
- RPC-Put-V1-28, RPC-Patch-V1-12
A PUT or PATCH request must always have a request body defined. This rule applies to all ARM resources (Tracked and Proxy). PUT and PATCH operations using an empty payload is not allowed in ARM.
Add a request body for every PUT or PATCH operation defined in your swagger. This request body must also match the response body of the PUT or PATCH operation.
PUT without a request body:
"put": {
"tags": [
"DataConnectors"
],
...
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter"
},
....
{
"in": "body",
"name": "body",
"description": "Body must be valid DataConnector request.",
"required": true,
// No schema specified here....
}
],
Another PUT operation without a request body:
"put": {
"tags": [
"DataConnectors"
],
...
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter"
},
....
// No body parameter specified here....
],
Put with a request body
"put": {
"tags": [
"DataConnectors"
],
...
"parameters": [
...
{
"in": "body",
"name": "body",
"description": "Body must be valid DataConnector request.",
"required": true,
"schema": {
"$ref": "#/definitions/DataConnector"
}
}
],