Sync site items
Asks the websites you list in sites to report again which plugins, themes and WordPress version they have installed, and updates Modular DS with the answer. Use it after you changed a website directly in WordPress.
It creates one site action per website that passes the checks. The work finishes later: see Writes and asynchronous operations. Follow the site actions with “List site actions”. Websites that cannot be processed are reported in meta.skipped, each with a reason_code and a message, and do not fail the call. A website is skipped when it is not connected (SITE_UNREACHABLE), when its inventory was synchronized recently (ALREADY_APPLIED), when it already has too many pending or running actions (CONFLICT), or when you have no access to it (PERMISSION_DENIED).
Body
sites(array of integers, required): ids of the websites to act on, 1 to 50.
Errors
- 422:
sitesis missing, empty, has more than 50 ids, or contains an id that matches no website.
Authentication
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Request
Response
202 Accepted - one sync launched, one website skipped
