MagicWP Docs
WordPress

Update WordPress settings

PATCH
/v1/sites/{site_id}/wp/settings

Permission: wp.settings

Authorization

apiToken
headerAuthorizationBearer <token>

An API token (mwp_…) from Settings → API tokens. Only accepted on this host.

Path Parameters

site_id*Site Id
Formatuuid

Request Body

application/json
  1. body
settings*

Subset of: blogname, blogdescription, admin_email, siteurl, home, timezone_string, date_format, time_format, start_of_week, WPLANG, users_can_register, default_role, default_comment_status, default_ping_status, posts_per_page, permalink_structure, blog_public

Response Body

Successful Response

application/json
  1. response
success*boolean
data*

The site's WordPress options. Values are strings as WordPress stores them; an option that was never set reads false.

message*string
status_code*integer
timestamp*string
Formatdate-time
meta?|null
curl -X PATCH "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/wp/settings" \  -H "Content-Type: application/json" \  -d '{    "settings": {      "property1": "string",      "property2": "string"    }  }'
{  "message": "string",  "status_code": 0,  "timestamp": "2019-08-24T14:15:22Z",  "meta": {},  "success": true,  "data": {    "blogname": null,    "blogdescription": null,    "admin_email": null,    "siteurl": null,    "home": null,    "timezone_string": null,    "date_format": null,    "time_format": null,    "start_of_week": null,    "WPLANG": null,    "users_can_register": null,    "default_role": null,    "default_comment_status": null,    "default_ping_status": null,    "posts_per_page": null,    "permalink_structure": null,    "blog_public": null  }}