Update theme

Update a WordPress theme to the latest version.


POST/api/servers/{server}/sites/{id}/wordpress/themes/update

Update theme

Updates the specified WordPress theme to the latest available version. Requires WP-CLI to be installed on the server.

Required attributes

  • Name
    theme
    Type
    string
    Description

    The theme slug to update (e.g. twentytwentyfive).

Query parameters

  • Name
    ondemand
    Type
    boolean
    Description

    When set to true, the command runs synchronously and returns the result directly. When omitted or false (default), the action is queued and processed in the background.

Request

POST
/api/servers/{server}/sites/{id}/wordpress/themes/update
curl -X POST "https://ploi.io/api/servers/{server}/sites/{id}/wordpress/themes/update?ondemand=true" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"theme": "twentytwentyfive"}'

Response

{
  "status": "ok",
  "message": "Theme updated."
}