Update an audit
PATCH
/v1/audits/{auditId}
const url = 'https://api.varman.io/v1/audits/aud_abc123';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"SOC 2 Type II 2026","type":"soc2_type1","status":"planning","auditFirm":"Prescient Assurance","periodStart":{},"periodEnd":{},"fieldworkStart":{},"fieldworkEnd":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/audits/aud_abc123 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "SOC 2 Type II 2026", "type": "soc2_type1", "status": "planning", "auditFirm": "Prescient Assurance", "periodStart": {}, "periodEnd": {}, "fieldworkStart": {}, "fieldworkEnd": {} }'Updates name, type, status, audit firm, observation period or fieldwork dates. Only the fields sent change. Send null to clear a date.
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
name
Audit name
string
Example
SOC 2 Type II 2026type
Audit type
string
status
Audit status, defaults to planning
string
auditFirm
Audit firm
object
Example
Prescient AssuranceperiodStart
Observation period start (Type II), ISO date
object
periodEnd
Observation period end (Type II), ISO date
object
fieldworkStart
Fieldwork start, ISO date
object
fieldworkEnd
Fieldwork end, ISO date