{
  "documentation": "TODO NOCOMMIT",
  "description": "The Scaling API provides API for adding cluster level scaling rules, triggers and event listeners",
  "methods": [
    "GET",
    "POST"
  ],
  "url": {
    "paths": [
      "/cluster/autoscaling",
      "/cluster/autoscaling/diagnostics"
    ]
  },
  "commands": {
    "set-policy" : {
      "type":"object",
      "description": "The set-policy command allows you to add and update policies that apply to collections",
    /*  "patternProperties": {
        "^.+$": {
          "type": "array"
        }
      },*/
      "additionalProperties": true
    },
    "set-cluster-policy" : {
      "type" : "array",
      "description" : "The set-cluster-policy command allows you to add and update cluster-level policy that acts as the base for all collection level policies, if any"
    },
    "set-cluster-preferences" : {
      "type" : "array",
      "description" : "The set-cluster-preferences command allows you to add and update cluster-level preferences that are used to sort nodes for selection in cluster operations"
    },
    "remove-policy": {
      "description": "Remove a policy",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the policy to be removed"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}

{
  "documentation": "https://lucene.apache.org/solr/guide/solrcloud-autoscaling-api.html",
  "description": "The Scaling API provides API for adding cluster level scaling rules, triggers and event listeners",
  "methods": [
    "GET",
    "POST"
  ],
  "url": {
    "paths": [
      "/cluster/autoscaling",
      "/cluster/autoscaling/diagnostics"
    ]
  },
  "commands": {
    "set-policy" : {
      "type":"object",
      "description": "The set-policy command allows you to add and update policies that apply to collections",
    /*  "patternProperties": {
        "^.+$": {
          "type": "array"
        }
      },*/
      "additionalProperties": true
    },
    "set-cluster-policy" : {
      "type" : "array",
      "description" : "The set-cluster-policy command allows you to add and update cluster-level policy that acts as the base for all collection level policies, if any"
    },
    "set-cluster-preferences" : {
      "type" : "array",
      "description" : "The set-cluster-preferences command allows you to add and update cluster-level preferences that are used to sort nodes for selection in cluster operations"
    },
    "remove-policy": {
      "description": "Remove a policy",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the policy to be removed"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}

Replace nocommit with link to ref guide document
SOLR-9735: Replace nocommit with link to ref guide document
