Tuyu Developers

Developers

Customize the URLs on this site with your Tuyu URL:

https:// .
Method Documentation > Users and Workspaces

Remove User from Workspace POST

Description

Remove a user from a 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 “remove_from_workspace”)

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

Restrictions

The calling user must have:

  • Admin privileges for the site.

Parameters

Bold indicates required.

Parameter Description
api_key Your API Key.
user_id The ID of the user being removed from the workspace.
user_workspace_ids A comma-separated list of workspace IDs the user can be removed from.
timestamp The current time in Unix timestamp format.
signature Please see “User Authentication” for more information.

Sample Response

Successful response In JSON:

{"removeFromWorkspace":{"userId":10045, "userWorkspaceIds": 4561,4567}}

Successful response in XML:

<removeFromWorkspace>
    <userId>10045</userId>
    <userWorkspaceIds>4561,4567</userWorkspaceIds>
</removeFromWorkspace>

Error response In JSON:

{"error":{
    "title":"'Remove User from Workspace Failed",
    "message":"Please try again or contact customer support."}
}

Error response In XML:

<error>
    <title>'Remove User from Workspace Failed</title>
    <message>Please try again or contact customer support.</message>
</error>