postAppointmentsInvitation method

Future<RestApiResponse> postAppointmentsInvitation(
  1. String id,
  2. String action,
  3. bool deleteAppointment
)

This request allows to reply to appointment invitation

id OID or ~UUID of appointment or EMail appointment

action (one of accept, tentative, decline) Possible actions for replying to appointments invitation

deleteAppointment It allows to delete the appointment when the invitation is going to be declined

Implementation

Future<RestApiResponse> postAppointmentsInvitation(
  String id,
  String action,
  bool deleteAppointment,
) {
  return _bodyRequest(
    ApiHttpMethod.post,
    '/appointments/$id/invitation/$action',
    'postAppointmentsInvitation',
    <String, dynamic>{'deleteAppointment': deleteAppointment},
  );
}