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?