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’, ‘’, ‘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
curl -u admin:password -X POST --header ‘Content-Type: text/plain’