/batch when you need one request to fan out into multiple controller actions.
Use the MainWP Postman collection as the source of truth for request and response schemas.
Global Batch Route
| Method | Path | Purpose | Key Params |
|---|---|---|---|
| POST, PUT, PATCH | /batch | Execute grouped batch operations across multiple controllers | Controller payload objects (sites, clients, updates, costs, tags) |
Global Batch Behavior
The global/batch controller is orchestration-focused:
- Supports grouped
createrequests for controllers in scope (sites,clients,updates,costs,tags) - Supports additional site action arrays under
sitessuch assync,reconnect,disconnect,suspend,check,remove,security,plugins,themes,non-mainwp-changes - Enforces a request item limit (
mainwp_rest_batch_items_limit, default100)
Global Batch Example
Global vs Controller-Specific Batch
Use controller-specific batch endpoints when you need dedicated CRUD batching for that controller:/sites/batch/clients/batch/tags/batch/costs/batch
/batch when you need a single orchestrated request spanning multiple controller types.