POST
/
workspaces
/
{workspace_id}
/
clone
curl --request POST \
  --url https://app.getcensus.com/api/v1/workspaces/{workspace_id}/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "new_workspace_name": "<string>",
  "application_variables": [
    {
      "key": "<string>",
      "value": "<any>"
    }
  ],
  "return_workspace_api_key": true
}'
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authorization using your Personal Access Token. Generate a new PAT on your user settings page.

Path Parameters

workspace_id
integer
required

ID of the workspace

Body

application/json

Response

202
application/json
Successfully issued a clone of a workspace. The clone is in progress. To find the status of the clone use the status_endpoint returned.

The response is of type object.