Update a customer commitment
PATCH
/v1/customer-commitments/{id}
const url = 'https://api.varman.io/v1/customer-commitments/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"type":"contract_clause","title":"Notify security incidents within 72 hours","description":{},"dueDate":"2026-12-31T00:00:00.000Z","status":"open","ownerMemberId":"mem_abc123","controlId":"ctl_abc123","policyId":"pol_abc123"}'};
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/customer-commitments/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "type": "contract_clause", "title": "Notify security incidents within 72 hours", "description": {}, "dueDate": "2026-12-31T00:00:00.000Z", "status": "open", "ownerMemberId": "mem_abc123", "controlId": "ctl_abc123", "policyId": "pol_abc123" }'Updates fields on a commitment, such as status or due date. Only the fields sent are changed. Send null to clear optional fields.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
type
Kind of commitment
string
title
Short title
string
Example
Notify security incidents within 72 hoursdescription
Details or contract wording
object
dueDate
ISO 8601 due date (null clears it)
object
Example
2026-12-31T00:00:00.000Zstatus
Current status
string
ownerMemberId
Member ID of the owner
object
Example
mem_abc123controlId
Control that satisfies it
object
Example
ctl_abc123policyId
Policy that covers it
object
Example
pol_abc123