Writes and asynchronous operations
Create, update and delete
Write requests send a JSON body and need a read and write token (see Authentication).
Asynchronous operations
Some operations reach the WordPress installation of each website, or copy data, and take seconds to minutes. They answer 202 Accepted as soon as the work is queued:
The 202 document lists the resources created, one per website that accepted the work, and the websites that were skipped:
datacan be empty: when every website was skipped, the answer is still202.- Each entry of
meta.skippednames the website (site_id,site_name), carries the id of the related target when there is one, a machine-readablereason_codeand a readablemessage.reason_codeis one ofSITE_UNREACHABLE,UNSUPPORTED,NOT_FOUND,PERMISSION_DENIED,CONFLICT,ALREADY_APPLIEDandQUOTA_EXCEEDED; new codes can be added (see Versioning). meta.warningsappears when the work was queued with something you should know about.
202 means queued, not done. Follow each created resource by its id until it settles.
Following a site action
Read the action with its show endpoint and watch status:
Following a backup
A backup copy takes minutes. Read it, or list backups filtered by phase, and watch phase:
Restorations can be read through the API, but they are started from the dashboard.
Polling
Poll gently: a few seconds between reads of the same resource is enough, and every read counts towards your rate limit.
