Install app
Writes the app's compose file under ~/.homebutler/apps/<app> and starts it. Protection: token. A failed pre-flight check, such as a port that is taken, returns 200 with status set to failed and the reasons in issues, so you can change the port and ask again.
Authorizations
The token you start the server with: homebutler serve --token <token>, or web.token in the config file. Send it as Authorization: Bearer <token>. When the server has a token, every /api/ route except the CORS preflight requires it, reads included.
Path parameters
The app name from List apps.
Body
application/jsonThe host port, as a string. It defaults to the app's default_port. A JSON number in its place is ignored, and the app installs on the default port.
Response
200 · application/jsonstatus is installed, or failed with issues.
What happened.
The app name.
Why a pre-flight check failed. Present when status is failed.
The host port.
The folder with the app's compose file and data.
The containers' state after the install.
true after an uninstall, false after a purge.
Present when an earlier install's state couldn't be carried over, or when part of the data is in Docker volumes outside the app directory.
Volumes that still exist after a purge. Present only when not empty.
Volumes Docker couldn't be asked about during a purge. Present only when not empty.