def create_appointment_group(self, appointment_group, **kwargs):
from canvasapi.appointment_group import AppointmentGroup<EOL>if (<EOL>isinstance(appointment_group, dict) and<EOL>'<STR_LIT>' in appointment_group and<EOL>'<STR_LIT:title>' in appointment_group<EOL>):<EOL><INDENT>kwargs['<STR_LIT>'] = appointment_group<EOL><DEDENT>elif (<EOL>isinstance(appointment_group, dict) and<EOL>'<STR_LIT>' not in appointment_group<EOL>):<EOL><INDENT>raise RequiredFieldMissing(<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT>elif isinstance(appointment_group, dict) and '<STR_LIT:title>' not in appointment_group:<EOL><INDENT>raise RequiredFieldMissing("<STR_LIT>")<EOL><DEDENT>response = self.__requester.request(<EOL>'<STR_LIT:POST>',<EOL>'<STR_LIT>',<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return AppointmentGroup(self.__requester, response.json())<EOL>
Create a new Appointment Group.

:calls: `POST /api/v1/appointment_groups \
<https://canvas.instructure.com/doc/api/appointment_groups.html#method.appointment_groups.create>`_

:param appointment_group: The attributes of the appointment group.
:type appointment_group: `dict`
:param title: The title of the appointment group.
:type title: `str`
:rtype: :class:`canvasapi.appointment_group.AppointmentGroup`