Update Manager API endpoints were added in v2.6.0.
/wp-json/wp-manager-pro/v1/updates
All endpoints require X-WP-Nonce header with a wp_rest nonce and the manage_options capability.
GET /updates/available
Returns all pending updates for plugins, themes, and WordPress core.Parameters
If
true, forces WordPress to re-query WordPress.org for fresh update data before returning results.Response
Returns an array of update items:Composite ID:
plugin:slug/file.php, theme:slug, or core:wordpress.plugin, theme, or core.Plugin/theme slug or
wordpress for core.Plugin file path (plugins only).
Human-readable name.
Currently installed version.
Version available for update.
URL to the WordPress.org changelog page.
GET /updates/changelog
Returns changelog information for a specific update item.Parameters
plugin or theme.Plugin or theme slug.
Response
Object containing changelog HTML, keyed by section name (e.g.
changelog).POST /updates/run
Run one or more updates.Parameters
Array of items to update. Each item must include
type (plugin, theme, or core), and either file (plugins) or slug (themes/core).Response
Returns an array of result objects:The composite item ID.
done or failed.Error message if status is
failed.Version before the update.
Version after the update.
Whether a backup was captured before updating.
POST /updates/rollback
Roll back a previously updated item to its pre-update backup.Parameters
The history entry ID to roll back (from the history list).
Response
Always
true on success.GET /updates/history
Returns the update history log.Response
Returns an array of history entries (up to 100 most recent):History entry ID.
Plugin/theme/core name.
plugin, theme, or core.Slug.
Version before update.
Version after update.
ISO 8601 timestamp of when the update ran.
done, failed, or rolled-back.Error message if applicable.
Whether a rollback backup is available.
DELETE /updates/history/clear
Clears all update history entries (backup files are not deleted).Response
Always
true on success.GET /updates/scheduled
Returns all scheduled update jobs.Response
Returns an array of scheduled job objects:Job ID.
plugin, theme, or core.Slug.
Unix timestamp of the scheduled run time.
ISO 8601 creation timestamp.
pending or running.Next WP Cron fire time as Unix timestamp.
Human-readable next run time.
POST /updates/schedule
Schedule an update job.Parameters
plugin, theme, or core.Plugin/theme slug or
wordpress for core.Unix timestamp for when to run the update.
Response
Always
true on success.ID of the created scheduled job.
POST /updates/schedule/cancel
Cancel a scheduled update job.Parameters
The job ID to cancel.
Response
Always
true on success.GET /updates/check-self
Checks whether WP Manager Pro itself has an update available.Response
Whether an update is available.
Currently installed version.
Latest available version.
