Creating HELM repository using API

I would like to create helm repository by pushing .json file to nexus and execute it. That way works for yum, apt, npm, docker… “createHelmProxy()” does not exists. Is there any other way to create helm repo with .json file?

example of .json file for docker repository:
{
“name”: “addRepos”,
“content”: " repository.createDockerProxy(‘docker-group’, ‘http://nexus.devops.iskratel.cloud/repository/docker-group/’, ‘REGISTRY’, null, 5001, null, ‘default’, true, true);",
“type”: “groovy”
}
And command to push and start script:
curl -u admin:password -X POST --header ‘Content-Type: application/json’ -d @/tmp/addRepos.json http://127.0.0.1:8081/service/rest/v1/script
curl -u admin:password -X POST --header ‘Content-Type: text/plain’ http://127.0.0.1:8081/service/rest/v1/script/addRepos/run