The Site Actions API allows you to manage the sites owned by a Wix account.
With the Wix Site Actions API, your app can:
- Delete site in bulk.
- Publish sites.
It’s important to note the following before starting to code:
- A maximum of 20 sites can be deleted each time the Bulk Delete Site endpoint is run.
Publishes a site.
Publishing a site makes any changes previously saved on the site available on the internet. After publishing, changes to your site appear in the site's history.
When you call this API, you must pass a header called wix-site-id
whose value is the ID of the site you want to publish. Learn more about
working with API keys and site IDs.
Important: This call requires an account level API key and cannot be authenticated with the standard authorization header.
Syntax
This endpoint enables you to delete multiple sites.
This is not a permanent delete. Sites are moved to the trash bin and can be restored through site collaborators.
Learn more about deleting multiple sites.
Important: This call requires an account level API key and cannot be authenticated with the standard authorization header.