The sites endpoint allows sites to retrieve information about their configuration on the server and update site specific configuration and settings.
This endpoint does not inherit any other endpoints, besides the /v1/tokenvalidate/ endpoint open to all the API users.
Target a specific site by adding the site ID to the request URI.
For example: SRV-IP:34560/v1/sites/123abc
- SRV-IP – Your server IP
- 34560 – API Port
- /v1/sites – Sites API Endpoint
- 123abc – SiteID (the actual ID is saved in the wp-config file as “NODALIO_PRIVATE_KEY”)
Shortcodes available for the /v1/sites endpoint:
- cacheon
- cacheon-noreload
- microcache
- backuplist
- sitemovetostaging
- sitemovetolive
- sitechangephp
- trafficcontrol
- keepalive
- appcl
- cacheoff
- cacheoff-noreload
- oc
- sitelog-access
- sitelog-access-staging
- sitelog-error
- sitelog-error-staging
- siteinfo
- restore
- restore-full
- restoreoc
- restoreoc-full
- siteowneremail
- cronserver
- clearsitecache