I’m trying to use the Bonsai API to trigger a rebuild as documented here - API documentation. That says
Currently, the Bonsai Asset Index application does not authenticate the caller making requests to the endpoints, and therefore does not authorize specific endpoints according to the caller’s permission level. In the future, this may change.
And when I do curl -XPUT https://bonsai.sensu.io/api/v1/assets/recompile/<username>/<assetname>
I get {"error_code":"AUTHENTICATION_FAILED","error_messages":["Could not find user ''."]}
My username and asset exist.
Maybe the doc us out of date, so what how do I authenticate?
If you did manage to fix it, it would be helpful if you could share the troubleshooting steps here for the benefit of others in the community. On the other hand, if the issue is still ongoing, I’d be happy to help investigate further.