Duplicate an interview as a draft
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/interviews/{interview_id}/duplicate-as-draft/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/interviews/{interview_id}/duplicate-as-draft/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/interviews/{interview_id}/duplicate-as-draft/ \
--header 'Authorization: Bearer <token>'{
"message": "Draft created from interview",
"draft": {
"topic": "<string>",
"interview_type": "interview",
"questions": [
"<string>"
],
"topics": [
{
"title": "<string>",
"description": "<string>",
"skill_id": "<string>"
}
],
"assignee_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"invite_emails": [
"[email protected]"
],
"language": "<string>",
"custom_message": "<string>",
"custom_focus": "<string>",
"scheduled_send_at": "2023-11-07T05:31:56Z",
"reminders_enabled": false,
"reminder_start_after_days": 2,
"reminder_interval_days": 3,
"reminder_max_count": 3,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"campaign": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"test_runs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"language": "<string>",
"started_from_topic_index": 123,
"started_from_topic_title": "<string>",
"skipped_topic_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"jumps": [
{
"from_topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"at_message_count": 123
}
],
"message_count": 123,
"draft_changed_since_start": true,
"interview_url": "<string>",
"draft_source_session": {
"kind": "clara_fast",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"source_session": {
"kind": "clara_fast",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_email": "[email protected]",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "User not found"
}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Interviews
Duplicate an interview as a draft
Duplicate one interview into a fresh, unsent draft. Admin only.
The draft copies the interview’s content and send settings (focus topic, questions or guided topics, language, custom message, reminder settings, campaign); recipients, transcript, schedule, and lifecycle state are not copied — pick recipients on the draft and send it via the assign endpoint. Nothing is sent by this call. Only standard and guided interviews can be duplicated — imported transcripts return 400.
POST
/
projects
/
{project_id}
/
interviews
/
{interview_id}
/
duplicate-as-draft
/
Duplicate an interview as a draft
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/interviews/{interview_id}/duplicate-as-draft/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/interviews/{interview_id}/duplicate-as-draft/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/interviews/{interview_id}/duplicate-as-draft/ \
--header 'Authorization: Bearer <token>'{
"message": "Draft created from interview",
"draft": {
"topic": "<string>",
"interview_type": "interview",
"questions": [
"<string>"
],
"topics": [
{
"title": "<string>",
"description": "<string>",
"skill_id": "<string>"
}
],
"assignee_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"invite_emails": [
"[email protected]"
],
"language": "<string>",
"custom_message": "<string>",
"custom_focus": "<string>",
"scheduled_send_at": "2023-11-07T05:31:56Z",
"reminders_enabled": false,
"reminder_start_after_days": 2,
"reminder_interval_days": 3,
"reminder_max_count": 3,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"campaign": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"test_runs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"language": "<string>",
"started_from_topic_index": 123,
"started_from_topic_title": "<string>",
"skipped_topic_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"jumps": [
{
"from_topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"at_message_count": 123
}
],
"message_count": 123,
"draft_changed_since_start": true,
"interview_url": "<string>",
"draft_source_session": {
"kind": "clara_fast",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"source_session": {
"kind": "clara_fast",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_email": "[email protected]",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "User not found"
}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer
Path Parameters
UUID of the project
UUID of the interview to duplicate