Clone a QDS Account

POST /api/v1.2/accounts/clone

Use this API to clone a QDS account. You can choose to clone the users from the parent account; by default, they are not cloned.

Required Role

The following users can make this API call:

  • Users who belong to the system-admin group.
  • Users who belong to a group associated with a role that allows cloning an account. See Managing Groups and Managing Roles for more information.



Parameters marked in bold below are mandatory. Others are optional and have default values.

Parameter Description
id Account ID of the account that is to be cloned
name Name of the new cloned account. Provide a name to the account.
clone_qbol_users Set this parameter to true when you want to associate parent account users with the cloned account as well. If it is not set, only the user who clones the account would get associated with the cloned account.


Generates the new external ID for the cloned account. The available values are true and false. This feature is disabled by default. Contact Qubole Support to enable the same for your account.


By default, clusters are cloned.

Request API Syntax

curl -X POST -H "X-AUTH-TOKEN:<AUTH-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
-d '{"id":"<Account-Id>", "name":"<account-name>", "clone_qbol_users":"false"}' ""


The above syntax uses as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.

Sample Request

Here is a sample request API to clone a QDS account with ID 23.

curl -X POST -H "X-AUTH-TOKEN:<AUTH-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json"
-d '{
     "name":"clone acc",
     "clone_qbol_users":"false"}' ""

Sample Response

     "name": "clone acc",
     "state": "success_create",
     "groups": [
     "authentication_token": "$AUTH_TOKEN",
     "account_id": "$ACCOUNT_ID",
     "is_aws_keys_enabled": true,
     "status": "success"