Tuyu Developers

Developers

Customize the URLs on this site with your Tuyu URL:

https:// .
Method Documentation > Users and Workspaces

Workspace Delete POST

Description

Deletes a workspace, including all files in that workspace.

URL

All responses are in JSON format by default, to specify an XML response add “.xml” to the end of the method name (in this case “workspace_delete”)

https://<your subdomain>.<your domain>/api/workspace_delete

Restrictions

The calling user must have:

  • Admin privileges for the site.

Parameters

Bold indicates required.

Parameter Description
workspace_id The ID of the workspace to be deleted.
api_key Your API Key.
timestamp The current time in Unix timestamp format.
signature Please see “User Authentication” for more information.

Sample Response

Successful response In JSON:

{"workspaceDelete":{"workspaceId":1}}

Successful response in XML:

<workspaceDelete>
    <workspaceId>1</workspaceId>
</workspaceDelete>

Error response In JSON:

{"error":{
    "title":"'Workspace Delete Failed",
    "message":"You must be an administrator to call this method"}
}

Error response In XML:

<error>
    <title>'Workspace Delete Failed</title>
    <message>You must be an administrator to call this method</message>
</error>