curl --request POST \
--url https://api.trycomp.ai/v1/soa/save-answer \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"organizationId": "org_abc123def456",
"documentId": "soa_doc_abc123def456",
"questionId": "iso-control-0-policies-for-information-secur"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organizationId: 'org_abc123def456',
documentId: 'soa_doc_abc123def456',
questionId: 'iso-control-0-policies-for-information-secur'
})
};
fetch('https://api.trycomp.ai/v1/soa/save-answer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/soa/save-answer"
payload = {
"organizationId": "org_abc123def456",
"documentId": "soa_doc_abc123def456",
"questionId": "iso-control-0-policies-for-information-secur"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}Save a SOA answer | Comp AI API
Save a SOA answer in Comp AI. Create, auto-fill, review, approve, and export ISO 27001 Statement of Applicability documents.
curl --request POST \
--url https://api.trycomp.ai/v1/soa/save-answer \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"organizationId": "org_abc123def456",
"documentId": "soa_doc_abc123def456",
"questionId": "iso-control-0-policies-for-information-secur"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organizationId: 'org_abc123def456',
documentId: 'soa_doc_abc123def456',
questionId: 'iso-control-0-policies-for-information-secur'
})
};
fetch('https://api.trycomp.ai/v1/soa/save-answer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/soa/save-answer"
payload = {
"organizationId": "org_abc123def456",
"documentId": "soa_doc_abc123def456",
"questionId": "iso-control-0-policies-for-information-secur"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}Authorizations
API key for authentication
Body
ID of the organization that owns the SOA document
"org_abc123def456"
ID of the SOA document the answer belongs to
"soa_doc_abc123def456"
ID of the question being answered, from the document's SOA configuration
"iso-control-0-policies-for-information-secur"
Free-text answer for the question
"We maintain an approved information security policy set."
Whether the control is applicable to the organization; null when not yet decided
true
Justification for including or excluding the control from the SOA
"Applicable because all staff must acknowledge security policies."
Response
Answer saved successfully
Was this page helpful?

