Suspend and Remove Sites
You can temporarily suspend a site for late or non-payment. You can also permanently delete a site. Unpublishing a site means that the site is no longer live, however it can be accessed in the editor and republished.
In this topic:
Suspend Access to a Site
To temporarily prevent a user from updating their site in the event they are delinquent on their payment, their access to a site can be suspended via the Site::disable endpoint. When a site is suspended, access to the Weebly editor is disabled (the published site remains unchanged and active).
SSO loginLinks can still be generated for a suspended site. Clicking on a loginLink will inform the user that access to the site is disabled and will point them to contact their administrator.
Use the GET /site API which returns a 'suspended' parameter of true or false to determine if a site is suspended (the Cloud Admin also shows you if a site is suspended). A site can be taken out of a suspended state by making a call to Site::enable.
If you use the WHMCS plug-in, you can use that to suspend and reactivate accounts.
SSO loginLinks can still be generated for a suspended site. Clicking on a loginLink will inform the user that access to the site is disabled and will point them to contact their administrator.
Use the GET /site API which returns a 'suspended' parameter of true or false to determine if a site is suspended (the Cloud Admin also shows you if a site is suspended). A site can be taken out of a suspended state by making a call to Site::enable.
If you use the WHMCS plug-in, you can use that to suspend and reactivate accounts.
Delete a Site
If a user cancels their subscription you can make a call to DELETE /site. This prevents the user from accessing the site by SSO loginLink or login credentials. Weebly will no longer bill the partner for the site once it is deleted. You can also delete a site from the site detail page in the Cloud Admin.
Click the image for a larger view.
Unpublish a Site
In the event you want to unpublish a site you can use the Site::unpublish endpoint. This will unpublish the site, but not prevent the user from republishing. This API method should not be taken lightly. Unpublishing a user's site should be communicated far in advance so the user can take the appropriate steps to remedy the situation.