WordPress

Update WordPress core, a plugin or a theme (a pre-update backup is taken by default)

post/projects/{projectId}/wordpress/update

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/wordpress/update
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b

Request body

target'core' | 'plugin' | 'theme' required
slugstring

required for target plugin/theme

versionstring

omit to update to the latest version

backupFirstboolean

take an on-demand backup before updating (strongly recommended)

Response

Update finished

status'success' | 'failed' required
outputstring required
backupIdstring uuid nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.