Accept or return a request
POST
/v1/audits/{auditId}/requests/{requestId}/review
const url = 'https://api.varman.io/v1/audits/aud_abc123/requests/aur_abc123/review';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"decision":"accepted","note":"Need the full user list"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/audits/aud_abc123/requests/aur_abc123/review \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "decision": "accepted", "note": "Need the full user list" }'Accepts a submitted request or returns it with needs_changes and an optional note added to the thread. Allowed for auditors on the audit and admins.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”auditId
required
string
Example
aud_abc123Audit ID
requestId
required
string
Example
aur_abc123Audit request ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
decision
required
Accept the request or return it
string
note
Note added to the comment thread
string
Example
Need the full user list