def create(self, list_id, data):
self.list_id = list_id<EOL>if '<STR_LIT:title>' not in data:<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT:type>' not in data:<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>if data['<STR_LIT:type>'] not in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>response = self._mc_client._post(url=self._build_path(list_id, '<STR_LIT>'), data=data)<EOL>if response is not None:<EOL><INDENT>self.category_id = response['<STR_LIT:id>']<EOL><DEDENT>else:<EOL><INDENT>self.category_id = None<EOL><DEDENT>return response<EOL>
Create a new interest category.

:param list_id: The unique id for the list.
:type list_id: :py:class:`str`
:param data: The request body parameters
:type data: :py:class:`dict`
data = {
    "title": string*,
    "type": string* (Must be one of 'checkboxes', 'dropdown', 'radio', or 'hidden')
}