Delete questionnaire answer
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/delete-answer \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"questionnaireId": "qst_abc123",
"organizationId": "org_abc123",
"questionAnswerId": "qqa_abc123"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
questionnaireId: 'qst_abc123',
organizationId: 'org_abc123',
questionAnswerId: 'qqa_abc123'
})
};
fetch('https://api.trycomp.ai/v1/questionnaire/delete-answer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/questionnaire/delete-answer"
payload = {
"questionnaireId": "qst_abc123",
"organizationId": "org_abc123",
"questionAnswerId": "qqa_abc123"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"error": "<string>"
}Questionnaire
Delete questionnaire answer | Comp AI API
Delete a stored questionnaire answer when it should be removed from the active response set.
POST
/
v1
/
questionnaire
/
delete-answer
Delete questionnaire answer
curl --request POST \
--url https://api.trycomp.ai/v1/questionnaire/delete-answer \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"questionnaireId": "qst_abc123",
"organizationId": "org_abc123",
"questionAnswerId": "qqa_abc123"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
questionnaireId: 'qst_abc123',
organizationId: 'org_abc123',
questionAnswerId: 'qqa_abc123'
})
};
fetch('https://api.trycomp.ai/v1/questionnaire/delete-answer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/questionnaire/delete-answer"
payload = {
"questionnaireId": "qst_abc123",
"organizationId": "org_abc123",
"questionAnswerId": "qqa_abc123"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"error": "<string>"
}Authorizations
API key for authentication
Body
application/json
Questionnaire that contains the answer to clear.
Example:
"qst_abc123"
Organization ID. The API overwrites this with the authenticated active organization.
Example:
"org_abc123"
Question/answer record whose answer is cleared and reset to untouched.
Example:
"qqa_abc123"
Was this page helpful?

