Save a singleton document narrative
curl --request POST \
--url https://api.trycomp.ai/v1/isms/documents/{id}/narrative \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"narrative": {}
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({narrative: {}})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/narrative', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/isms/documents/{id}/narrative"
payload = { "narrative": {} }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)ISMS
Save a singleton document narrative | Comp AI API
Replaces the working draft narrative of a document type that stores one, such as ISMS scope, leadership commitment, internal audit or risk assessment.
POST
/
v1
/
isms
/
documents
/
{id}
/
narrative
Save a singleton document narrative
curl --request POST \
--url https://api.trycomp.ai/v1/isms/documents/{id}/narrative \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"narrative": {}
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({narrative: {}})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/narrative', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/isms/documents/{id}/narrative"
payload = { "narrative": {} }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Path Parameters
Body
application/json
Singleton document narrative payload
Per-type narrative object (e.g. ISMS scope or leadership commitment), validated at runtime by zod
Response
200
Narrative saved
Was this page helpful?

