Updates Endpoints
FreshSource: MainWP Updates API
Read Operations
| Method | Path | Parameters |
|---|---|---|
| GET | /updates | type (all/wp/plugins/themes/translations), search, include, exclude |
| GET | /updates/{id_or_domain} | type, search |
| GET | /updates/ignored | Global ignored updates |
| GET | /updates/{id_or_domain}/ignored | Site-specific ignored |
Execute Updates
| Method | Path | Description |
|---|---|---|
| POST/PUT/PATCH | /updates/update | Dashboard-wide updates |
| POST/PUT/PATCH | /updates/{id_or_domain}/update | Single site updates |
| POST | /updates/{id_or_domain}/wp | Core update |
| POST | /updates/{id_or_domain}/plugins | Plugin updates (optional slug) |
| POST | /updates/{id_or_domain}/themes | Theme updates (optional slug) |
| POST | /updates/{id_or_domain}/translations | Translation updates |
Ignore Operations
| Method | Path | Parameters |
|---|---|---|
| POST | /updates/{id_or_domain}/ignore/wp | Ignore core update |
| POST | /updates/{id_or_domain}/ignore/plugins | slug (comma-separated) |
| POST | /updates/{id_or_domain}/ignore/themes | slug (comma-separated) |
Example: List Plugin Updates
bash
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://your-dashboard.com/wp-json/mainwp/v2/updates?type=plugins"Example: Update Specific Plugin
bash
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"slug": "akismet"}' \
"https://your-dashboard.com/wp-json/mainwp/v2/updates/1/plugins"