Skip to main content
Server Actions

Reinstall a server

Asynchronous Request

Please note: Reinstall means you will be deleting your server and replacing it with a fresh image of your choice. You will keep your server name and metadata, server shortname (slug), monitoring rules and IP addresses. Otherwise it will behave as a freshly provisioned server. Any existing snapshots for this server will be deleted. If you install a LAMP/LEMP stack Webdock will generate new credentials for your server (Database, FTP and admin Shell/SSH user).

POST
/servers/{serverSlug}/actions/reinstall
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server

Body

application/json

Reinstall server model

deleteSnapshotsbooleandefault:false

Indicate whether all existing snapshots should be deleted once the server is reinstalled. Defaults to FALSE.

imageSlugstringrequired

Image slug of the image you want to reload the server with. Any image listed for the server location from /images is valid.

userScriptIdinteger | string | null

Optional. Account or library script numeric id, or the slug string from script list or detail responses. If provided, the script is deployed to /root/auto-deploy-script and executed once provisioning finishes (after all provisioning actions, including SSL certificate generation). The script is executed from the command line; ensure it has a valid shebang (e.g. #!/bin/bash, #!/usr/bin/env python3) and is self-contained. Use this to auto-deploy software, credentials, or other setup steps.

Server reinstall initiated.

X-Callback-IDstringheader

CallbackID