Respond to the draft audit report
curl --request POST \
--url https://api.trycomp.ai/v1/timelines/{id}/phases/{phaseId}/draft-review \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"outcome": "no_changes"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({outcome: 'no_changes'})
};
fetch('https://api.trycomp.ai/v1/timelines/{id}/phases/{phaseId}/draft-review', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/timelines/{id}/phases/{phaseId}/draft-review"
payload = { "outcome": "no_changes" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Timelines
Respond to the draft audit report | Comp AI API
Records the customer review of the draft audit report: no_changes completes the Draft Report phase, suggestions sends the draft back to the auditor.
POST
/
v1
/
timelines
/
{id}
/
phases
/
{phaseId}
/
draft-review
Respond to the draft audit report
curl --request POST \
--url https://api.trycomp.ai/v1/timelines/{id}/phases/{phaseId}/draft-review \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"outcome": "no_changes"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({outcome: 'no_changes'})
};
fetch('https://api.trycomp.ai/v1/timelines/{id}/phases/{phaseId}/draft-review', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/timelines/{id}/phases/{phaseId}/draft-review"
payload = { "outcome": "no_changes" }
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
Body
application/json
no_changes confirms the draft and completes the Draft Report phase; suggestions sends the draft back to the auditor.
Available options:
no_changes, suggestions Example:
"no_changes"
Response
201
Was this page helpful?

