You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Domain of the existing website where WordPress will be installed
site_title
str
Title of the WordPress site
language
str
WordPress locale. Defaults to en_US when omitted.
[optional]
type
str
Installation kind; `default` when omitted. `headless` installs WordPress into the `cms` directory with the Hostinger headless MU plugin and marks the website as a headless WordPress website. Accepted only for a website that is already headless, e.g. one created by `POST /api/hosting/v1/orders/{order_id}/onboardings` (`hosting_websites_start-setup`) with `type: headless_empty`; any other website is rejected with 422.
[optional]
directory
str
Installation subdirectory relative to the document root; omit for the root. Not allowed with `type: headless`, which always installs into `cms`.
[optional]
overwrite
bool
When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true.
[optional]
auto_updates
str
WordPress core auto-update policy
[optional]
version
str
WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected.
fromhostinger_api.models.word_press_v1_installations_install_word_press_requestimportWordPressV1InstallationsInstallWordPressRequest# TODO update the JSON string belowjson="{}"# create an instance of WordPressV1InstallationsInstallWordPressRequest from a JSON stringword_press_v1_installations_install_word_press_request_instance=WordPressV1InstallationsInstallWordPressRequest.from_json(json)
# print the JSON string representation of the objectprint(WordPressV1InstallationsInstallWordPressRequest.to_json())
# convert the object into a dictword_press_v1_installations_install_word_press_request_dict=word_press_v1_installations_install_word_press_request_instance.to_dict()
# create an instance of WordPressV1InstallationsInstallWordPressRequest from a dictword_press_v1_installations_install_word_press_request_from_dict=WordPressV1InstallationsInstallWordPressRequest.from_dict(word_press_v1_installations_install_word_press_request_dict)