Add an evidence request
POST
/v1/audits/{auditId}/requests
const url = 'https://api.varman.io/v1/audits/aud_abc123/requests';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"title":"Access review for Q3","description":{},"controlId":"ctl_abc123","requirementLabel":{},"ownerMemberId":"mem_abc123","dueDate":{}}'};
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 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "title": "Access review for Q3", "description": {}, "controlId": "ctl_abc123", "requirementLabel": {}, "ownerMemberId": "mem_abc123", "dueDate": {} }'Adds a request to the audit request list with optional control, requirement, owner and due date. Allowed for admins and auditors invited to the audit.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”auditId
required
string
Example
aud_abc123Audit ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
title
required
What the auditor asks for
string
Example
Access review for Q3description
Details of the request
object
controlId
Control the request is linked to
object
Example
ctl_abc123requirementLabel
Requirement label, e.g. CC6.1
object
ownerMemberId
Member who answers the request
object
Example
mem_abc123dueDate
Due date, ISO date