Invite an auditor to an audit
POST
/v1/audits/{auditId}/auditors
const url = 'https://api.varman.io/v1/audits/aud_abc123/auditors';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"email":"auditor@firm.com","name":"Jane Doe"}'};
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/auditors \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "email": "auditor@firm.com", "name": "Jane Doe" }'Adds an auditor contact to the audit. People who are not members get an invitation with the auditor role and only see the audits they are invited to.
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
email
required
Auditor email
string
Example
auditor@firm.comname
Auditor name
string
Example
Jane Doe