Apply services live
Changes the services of a running computer now, without updating the project: send the whole .homemade/config.jsonc text as config (or the services map). New and changed services start, removed ones stop, unchanged ones keep running, and their links follow. Only services take effect; other changed keys are listed in needsImageUpdate. Answers each service's health.
apiKeyAuthorizationBearer <hmk_…>An API key from the dashboard or homemade api-key create.
vmId*stringapplication/json- body
config?stringThe whole .homemade/config.jsonc text. Only its services take effect now.
length <= 262144restart?array<>Services to start again even when they did not change.
items <= 64services?The new services, in the config's services shape, instead of config.
What changed, and each service's health.
application/json- response
failed*array<string>Services that failed.
ready*booleanEvery service that starts by itself is healthy.
services*array<>applied*needsImageUpdate*array<string>Config keys besides services that differ from the project's ready setup; they take effect after its next update.
warnings*array<string>curl -X PUT 'https://api.homemade.dev/api/vms/string/services' \ -H 'Content-Type: application/json' \ -d '{}'{ "failed": [ "string" ], "ready": true, "services": [ { "exitCode": -9007199254740991, "log": [ "string" ], "name": "string", "port": 1, "state": "starting", "url": "string" } ], "applied": { "kept": [ "string" ], "started": [ "string" ], "stopped": [ "string" ] }, "needsImageUpdate": [ "string" ], "warnings": [ "string" ]}Validate a project config POST
Checks a `.homemade/config.json` or `.jsonc` file against the config schema. `.ts` and `.js` configs are checked at the first build instead.
Create a VM POST
Creates a VM from a project's latest build and starts it. The answer comes at once with the VM in `queued` or `booting`; poll `GET /api/vms/{vmId}` until `state` is `running`.