Skip to main content
WordPress

Register an existing WordPress installation path

Stores WordPress install metadata for this server so Webdock can manage an already-installed WordPress instance. This is the API equivalent of manually linking an existing install in the dashboard.

Prerequisite: You must first call POST /servers/{serverSlug}/wordpress/setup-cli. Managed WordPress also requires that the server was provisioned with a profile where wordpressManagementIncluded=true; discover/select eligible profiles using GET /profiles before provisioning, otherwise this operation is rejected.

PATCH
/servers/{serverSlug}/wordpress/installation
Authorizationstringheaderrequired

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

serverSlugstringrequired

Slug of the server

Body

application/json
pathstringrequired

Absolute filesystem path to the existing WordPress installation, for example /var/www/html.

urlstring | null

Optional public site URL for this WordPress installation, for example https://example.com.

Response

application/json

WordPress installation metadata saved

pathstring
Example: /var/www/html
statusstring
Example: installed
urlstring | null
Example: https://example.com