TruthSift API version 2.0 beta
INSTANCES – Working with Corporate Instances
WORKSPACES – Working with Workspaces
- Get Count Of My Workspaces
- Get List Of My Workspaces
- Get Count Of My Shared Workspaces
- Get List Of My Shared Workspaces
- Get Count Of Members In a Workspace
- Get List Of Members In a Workspace
- Get List Of Workspaces as a Dropdown
- Create New Workspace
- Get Workspace Details
- Update Workspace
- Delete Workspace
- Add User To Workspace
- Delete User From Workspace
- Replicate Workspace >>
- Archive Workspace
- Unarchive Workspace
- Get Count of Archived Workspaces
- Get List of Archived Workspaces
- Change Owner of Workspace
MEMBERSHIP – Functions related to membership and personal profile
- Get My Profile
- Update Profile
- Get My Notifications
- Change Password
- Clear My Notifications
- Mark All My Notifications As Read
- Mark A Single Notification As Read
- Get Count Of My Graphs
- Get List Of My Graphs
- Search My Graphs
- Get Count Of My Shared Graphs
- Get List Of My Shared Graphs
- Get Count Of My Closed Graphs
- Get List Of My Closed Graphs
- Add New Graph
- Get Graph Details
- Update Graph
- Delete Graph
- Get Shared Members Of A Graph
- Add Shared Member To A Graph
- Delete Shared Member From A Graph
- Get Ranking Parameters Of a Graph
- Add Ranking Parameter To a Graph
- Update Ranking Parameter In a Graph
- Delete Ranking Parameter From a Graph
- Assign Ranking Score
- Get Ranking Score For a Parameter
- Get Statements Of A Graph
- Get Single Statement
- Add Statement To A Graph
- Update Statement In A Graph
- Delete Statement From A Graph
- Replicate Graph
- Change Owner of Graph
Replicate A Workspace
Category: Workspace
DESCRIPTION
Replicate a workspace which you own. It will also replicate the graphs within the workspace which belong to you.
See the API call for replicateGraph to
get details of graph replication. Shared Users for the workspace are not replicated.
ENDPOINT
/api/replicateWorkspace/{apiKey}/{instanceId}/{workspaceId}
PARAMETERS
Parameter | Type | Mandatory |
apiKey | string | yes |
instanceId | int | yes |
workspaceId | int | yes |
RESPONSE IN JSON FORMAT
- result: SUCCESS/FAILURE
- error: error message only if result = FAILURE
- data: id of replicated workspace as int , only if result = SUCCESS
ERROR MESSAGES
- Invalid API Key – The API key you provided is not valid
- Invalid instance specified – The instance id is either invalid or you do not belong to that instance
- Invalid workspace specified – Workspace is invalid or has not been created by you
SAMPLE USAGE
curl https://truthsift.com/api/replicateWorkspace/54-c874ab70/1/32
error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE ^ E_DEPRECATED); $curl = curl_init(); $url = "https://truthsift.com/api/replicateWorkspace/54-c874ab70/1/32"; curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); curl_close($curl); var_dump($response);