Clone workspace
Clones a specific workspace in your organization, copying over connections and datasets from the original workspace. If you have connections or datasets that use workspace variables, those will be honored in the new workspace.
Request schema
Path parameters
ID of the workspace
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Request
The name for the new cloned workspace.
Optional. An array of key-value pairs representing workspace variables for the new workspace. All variable keys used in the base workspace must be provided for the cloned workspace.
The key of the workspace variable. Cannot contain whitespaces.
The value of the workspace variable.
Whether or not a successful result should include the api_key field in the response. This workspace api_key is used to interact with the Workspace APIs.
POST /api/v1/workspaces/{workspace_id}/clone HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Content-Type: application/json Host: app.getcensus.com Content-Length: 161 { "new_workspace_name": "string", "application_variables": [ { "key": "string", "value": null } ], "return_workspace_api_key": true }
Responses
202
The url of the new workspace's clone status.
The id of the retrieved workspace.
The name of the workspace. Must be unique within the organization.
The id of the organization the workspace belongs to.
The timestamp of when the workspace was created.
The list of emails that will receive alerts from the workspace.
The API key of the workspace.
401
HTTP status code.
403
HTTP status code.
Error message.
404
HTTP status code.
{ "status_endpoint": "https://app.getcensus.com/api/v1/workspaces/1123/clone_status", "data": { "id": 123, "name": "My Workspace", "organization_id": 1, "created_at": "2023-09-05T19:42:42.672Z", "notification_emails": [ "notifications@mycompany.slack.com" ], "api_key": "YourAPIKeyHere" } }