I fail to see in the docs how you can delete/edit/set the deploy-poll setting via REST. Anyone knows how to?
curl -k -u admin:changeme https://splunkforwarderServerName.domain:8089/services/deployment/client/config/ -d targetUri=deploymentServerName.domain:8089
There is a REST endpoint for changing arbitrary config file properties.
curl -ku admin:changeme https://localhost:8089/services/properties/deploymentclient/target-broker:deploymentServer/targetUri -d value=your_splunk_ds:8089
Don't forget to restart after:
curl -ku admin:changeme https://localhost:8089/services/server/control/restart -X POST