Unblock Template
const options = {
method: 'PATCH',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/employee-survey-templates/{template_id}/unblock', 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}/unblock"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.patch(url, headers=headers)
print(response.text)curl --request PATCH \
--url https://api.dcycle.io/v1/employee-survey-templates/{template_id}/unblock \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Standard Commuting Survey",
"is_blocked": false,
"updated_at": "2024-07-15T12:00:00Z"
}
Unblock Template
Let a blocked survey template accept answers again
PATCH
/
v1
/
employee-survey-templates
/
{template_id}
/
unblock
Unblock Template
const options = {
method: 'PATCH',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/v1/employee-survey-templates/{template_id}/unblock', 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}/unblock"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.patch(url, headers=headers)
print(response.text)curl --request PATCH \
--url https://api.dcycle.io/v1/employee-survey-templates/{template_id}/unblock \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Standard Commuting Survey",
"is_blocked": false,
"updated_at": "2024-07-15T12:00:00Z"
}
← Survey Templates API
Unblocks a template so its survey links show the questions and accept answers again.
Request
Headers
string
required
Your API key for authentication
string
required
Your organization UUID
Path Parameters
string
required
The UUID of the template to unblock
Response
Returns the updated template object withis_blocked: false.
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Standard Commuting Survey",
"is_blocked": false,
"updated_at": "2024-07-15T12:00:00Z"
}
Was this page helpful?