def post_entry(self, **kwargs):
response = self._requester.request(<EOL>'<STR_LIT:POST>',<EOL>'<STR_LIT>'.format(<EOL>self._parent_type,<EOL>self._parent_id,<EOL>self.id<EOL>),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>response_json = response.json()<EOL>response_json.update({<EOL>'<STR_LIT>': self.id,<EOL>'<STR_LIT>'.format(self._parent_type): self._parent_id<EOL>})<EOL>return DiscussionEntry(self._requester, response_json)<EOL>
Creates a new entry in a discussion topic.

:calls: `POST /api/v1/courses/:course_id/discussion_topics/:topic_id/entries \
    <https://canvas.instructure.com/doc/api/discussion_topics.html#method.discussion_topics_api.add_entry>`_

    or `POST /api/v1/groups/:group_id/discussion_topics/:topic_id/entries \
    <https://canvas.instructure.com/doc/api/discussion_topics.html#method.discussion_topics_api.add_entry>`_

:rtype: :class:`canvasapi.discussion_topic.DiscussionEntry`