Run filesystem ↔ WordPress sync
POST/wp-json/wp2/local-sync/v1/sync
Two-way sync between the Local Sync directory and WordPress: export sections, import changed HTML into posts, export missing files. No request body; choose the site with query blog_id.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Sync result
wp2lms_local_sync_invalid_blog
Not authenticated. WordPress REST: rest_not_logged_in / rest_forbidden. Use cookie + X-WP-Nonce or Application Password.
Insufficient capability or invalid REST nonce. WordPress REST: rest_forbidden / rest_cookie_invalid_nonce.
wp2lms_local_sync_unknown_blog