Submit an ISMS document for approval
curl --request POST \
--url https://api.trycomp.ai/v1/isms/documents/{id}/submit-for-approval \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"approverId": "mem_abc123def456"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({approverId: 'mem_abc123def456'})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/submit-for-approval', 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}/submit-for-approval"
payload = { "approverId": "mem_abc123def456" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)ISMS
Submit an ISMS document for approval | Comp AI API
Sends an ISMS document to a named approver for review, setting its status to needs_review. Requires the approverId of an active member. Rejected if any.
POST
/
v1
/
isms
/
documents
/
{id}
/
submit-for-approval
Submit an ISMS document for approval
curl --request POST \
--url https://api.trycomp.ai/v1/isms/documents/{id}/submit-for-approval \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"approverId": "mem_abc123def456"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({approverId: 'mem_abc123def456'})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/submit-for-approval', 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}/submit-for-approval"
payload = { "approverId": "mem_abc123def456" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

