Clone Survey Template
const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/employee-survey-templates/{template_id}/clone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/v1/employee-survey-templates/{template_id}/clone"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.post(url, headers=headers)
print(response.text)curl --request POST \
--url https://api.dcycle.io/v1/employee-survey-templates/{template_id}/clone \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "880e8400-e29b-41d4-a716-446655440000",
"name": "Standard Commuting Survey (copy)",
"is_default": false,
"status": "active",
"version": 1,
"config": { "..." : "..." },
"created_at": "2024-07-15T12:00:00Z"
}
Clone Survey Template
Create a copy of an existing survey template
POST
/
v1
/
employee-survey-templates
/
{template_id}
/
clone
Clone Survey Template
const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/employee-survey-templates/{template_id}/clone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/v1/employee-survey-templates/{template_id}/clone"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.post(url, headers=headers)
print(response.text)curl --request POST \
--url https://api.dcycle.io/v1/employee-survey-templates/{template_id}/clone \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "880e8400-e29b-41d4-a716-446655440000",
"name": "Standard Commuting Survey (copy)",
"is_default": false,
"status": "active",
"version": 1,
"config": { "..." : "..." },
"created_at": "2024-07-15T12:00:00Z"
}
← Survey Templates API
Creates a duplicate of an existing template with
" (copy)" appended to the name. The clone is never set as default, regardless of the original’s status.
Request
Headers
Path Parameters
Response
Returns the newly created template object.{
"id": "880e8400-e29b-41d4-a716-446655440000",
"name": "Standard Commuting Survey (copy)",
"is_default": false,
"status": "active",
"version": 1,
"config": { "..." : "..." },
"created_at": "2024-07-15T12:00:00Z"
}
Was this page helpful?