Repository navigation
Machines API docs: create-app name, IP assignments, wait range - #2688
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
mlr
marked this pull request as ready for review
November 24, 2026 00:02
kcmartin
approved these changes
Nov 24, 2026
Contributor
|
Looks good, thanks for testing it against the live API. One more page has the same two problems: model-context-protocol/deploy-with/machines-api.mdx creates the app with app_name and allocates IPs with GraphQL. You could fix it here or follow up after merging. |
Contributor
Author
|
Added the MCP guide fix in f754ea2: it now creates the app with |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Three fixes for readers who call the Machines API directly:
name, notapp_name. The Apps page documentedapp_nameas the required body field, and six examples sent it. The OpenAPI spec'sCreateAppRequesthasname. The API still takesapp_nameon its own, but a request that sends both (easy to do when you read the page and the spec together) gets400 {"error":"name and app_name params conflict, please use only name"}. Now the Apps page, the custom private networks page, the MCP Machines API guide, the warm pool blueprint and the two create-app snippets usename.POST /v1/apps/{app_name}/ip_assignments. Now the page documents it, with thetypebody field and an example, and keeps the flyctl example. The MCP Machines API guide now callsip_assignmentstoo, instead of GraphQL.waitendpoint,timeoutsaid only "Default is 60". The API refuses anything outside 1–60 seconds. Now the page gives the range.Preview
Related Fly.io community and GitHub links
CreateAppRequest,/v1/apps/{app_name}/ip_assignments, thewaitparameters)Notes
I checked each change against the live API:
The new curl example uses
\line continuations. The older examples on these pages use\\, which a shell doesn't read as a line continuation; I left those as they are.