// Accept an appointment
const { data } = await clinik.appointmentResponses.create({
appointmentId: 'appt_abc123',
participantStatus: 'accepted',
actorId: 'Practitioner/prac_def456',
comment: 'Confirmed — see you then.',
});
// Propose a new time
const { data: counter } = await clinik.appointmentResponses.create({
appointmentId: 'appt_abc123',
participantStatus: 'tentative',
actorId: 'Patient/pt_xyz789',
start: '2025-02-03T10:00:00Z',
end: '2025-02-03T10:30:00Z',
comment: 'Can we move to Monday morning instead?',
});