Use the MainWP Postman collection as the source of truth for request and response schemas.
JSON Request Bodies
For PUT and PATCH settings requests, send a JSON object withContent-Type: application/json. Media type matching is case-insensitive, and parameters such as charset=utf-8 are accepted. For example, you can use Content-Type: application/json; charset=utf-8.
Arrays, scalar values such as 5 or "abc", and null are not valid settings bodies. An empty object ({}) is accepted when the endpoint has no required fields.
Body validation can return these HTTP 400 errors before settings are updated:
