Delete Survey Template
const options = {
method: 'DELETE',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/employee-survey-templates/{template_id}', 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}"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.dcycle.io/v1/employee-survey-templates/{template_id} \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Old Survey Template",
"status": "active",
"updated_at": "2024-07-15T12:00:00Z"
}
Delete Survey Template
Soft-delete a survey template
DELETE
/
v1
/
employee-survey-templates
/
{template_id}
Delete Survey Template
const options = {
method: 'DELETE',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/employee-survey-templates/{template_id}', 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}"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.dcycle.io/v1/employee-survey-templates/{template_id} \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Old Survey Template",
"status": "active",
"updated_at": "2024-07-15T12:00:00Z"
}
← Survey Templates API
Soft-deletes a survey template by setting
enabled to false. The template is no longer returned in list queries but existing references from employee records are preserved.
Request
Headers
string
required
Your API key for authentication
string
required
Your organization UUID
Path Parameters
string
required
The UUID of the survey template to delete
Response
Returns the deleted template object withenabled: false.
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Old Survey Template",
"status": "active",
"updated_at": "2024-07-15T12:00:00Z"
}
Was this page helpful?