Add a calendar event
POST
/v1/calendar-events
const url = 'https://api.varman.io/v1/calendar-events';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"title":"SOC 2 audit kickoff","description":{},"startsAt":"2026-12-03T15:00:00.000Z","endsAt":"2026-12-03T16:00:00.000Z","allDay":false,"linkType":"control","linkId":"ctl_abc123","attendeeIds":["mem_abc123"]}'};
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/calendar-events \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "title": "SOC 2 audit kickoff", "description": {}, "startsAt": "2026-12-03T15:00:00.000Z", "endsAt": "2026-12-03T16:00:00.000Z", "allDay": false, "linkType": "control", "linkId": "ctl_abc123", "attendeeIds": [ "mem_abc123" ] }'Adds a custom event to the Security calendar with a title, date or time range, notes, attendees from the organization and an optional linked control, policy, task or audit.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
title
required
Event title
string
Example
SOC 2 audit kickoffdescription
Notes shown with the event
object
startsAt
required
ISO 8601 start. For all day events only the date part is used.
string
Example
2026-12-03T15:00:00.000ZendsAt
ISO 8601 end, on or after startsAt (null clears it)
object
Example
2026-12-03T16:00:00.000ZallDay
All day event. Defaults to true.
boolean
Example
falselinkType
Kind of record the event links to (send with linkId)
string
linkId
ID of the linked control, policy, task or audit
object
Example
ctl_abc123attendeeIds
Member IDs to invite, from the same organization
Array<string>
Example
[ "mem_abc123"]