Update the hardening options of a project

Applies hardening options on the site. Only the options sent are changed, the others keep their current value, so a provisioning script can send the two or three it cares about. login_ip_blocklist belongs to the Security add-on: it is dropped when the add-on is off, the rest of the payload still applies. Options the installed plugin is too old to understand are removed from the payload and listed under unsupported_options rather than silently dropped by the site. Hardening requires the WP Umbrella plugin 2.25.1 or later, an older site answers 503. file_editor_locked is true when the site fixes DISALLOW_FILE_EDIT to false in its own configuration: disable_file_editor is stored and the editor stays reachable, so the option changed nothing. Null when the plugin predates the check. two_factor says whether the site can actually apply require_2fa_admin. The site stands down when another plugin already owns the login form, so the option is stored while nobody is ever asked for a code: enforceable is then false, blocking_reason names why (conflicting_plugin or disabled_by_constant) and conflicting_plugin names the plugin. Null when the plugin predates the check.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Project ID

Body Params
options
object
required

Hardening options to change, by key

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json