This looks like the same issue I have:
Use REST API for automatic agent deployment - Troubleshooting - Checkmk Community
If Iām not mistaken, it should be fixed in 2.0.0p12: RESTAPI: fix agent information and agent download (checkmk.com)
Now we only have to wait until it is released