Create k8s by http api

Hello all!
I tried to create a new k8s by http api

echo '{
  "type": "cluster",
  "generation": 2,
  "name": "'${l_cluster_name}'",
  "rancherKubernetesEngineConfig": {
    "kubernetesVersion": "'${l_k8s_version}'",
    "network": {
      "plugin": "'${l_network_plugin}'",
      "options": {
        "'${l_network_plugin}'.enabled": "true"
      },
      "serviceClusterIpRange": "'${l_service_network_cidr}'",
      "podClusterIpRange": "'${l_internal_network_cidr}'",
      "nodePortRange": "'${l_nodeport_range}'"
    },
    "services": {
      "etcd": {
        "backupConfig": {
          "enabled": true,
          "intervalHours": 12,
          "retention": 6
        }
      },
      "kubeApi": {
        "serviceClusterIpRange": "'${l_service_network_cidr}'"
      },
      "coredns": {
        "enabled": true
      },
      "metricsServer": {
        "enabled": true
      },
      "nginxIngress": {
        "enabled": false
      }
    }
  },
   "clusterProvider": "custom"
}' > ./create_input.json
curl -vX POST -H "Authorization: Bearer ${l_rancher_akey}" -H "Content-Type: application/json" --data-binary @./create_input.json --url "https://${l_rancher_host}/v3/clusters"  -o cluster.json

but the cluster that is created is version 1: RKE instead of RKE2 and the version of kubernetes is accordingly v1.27.16-rancher1-1 and not v1.27.16+rke2r2 as I need.
Please, tell me what flag in JSON I should set to create a cluster RKE2.