an empty site export template
Export a single site by id. The response can be saved to file as is.
Site id
Promise resolving to a SiteExportInterface object.
Export all sites. The response can be saved to file as is.
Promise resolving to a SiteExportInterface object.
Import sites. Every site is tried: a site that cannot be imported does not stop the others.
site import data
OptionalsiteId: string
Optional site id. If supplied, only the site of that id is imported. Takes priority over siteUrl if both are provided.
OptionalsiteUrl: string
Optional site url. If supplied, only the site of that url is imported.
OptionalresultCallback: ResultCallback<SiteSkeleton>
Optional callback to process individual results. When given, the outcome of every site is passed to it as it happens (a failed site as an error that names it, with the cause nested) and a failed site does not throw: the sites that could be imported are returned. Without it, the failures are collected and thrown as one error after every site was tried.
the imported sites
Read site by id
Site id
a promise that resolves to a site object
Update site
site id
site data
a promise resolving to a site object
Create an empty site export template