Machines API for waiting a machine for state is not clear

The documentation tells to use the state parameter to wait for a state, but the example does not use this parameter

Should state be a query string? Or a json object in the body with POST?

It would be also better to add the possible machine states near this section instead of the bottom of the page

The doc could definitely be more explicit about usage! To clarify, it’s a GET request and you’d pass state as a query parameter like:

curl -i -X GET \
-H "Authorization: Bearer ${FLY_API_TOKEN}" -H "Content-Type: application/json" \

(Note that this post has been edited after catching my own error!)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.