def replace_topics(self, topics):
post_parameters = {<EOL>'<STR_LIT>': topics<EOL>}<EOL>headers, data = self._requester.requestJsonAndCheck(<EOL>"<STR_LIT>",<EOL>self.url + "<STR_LIT>",<EOL>headers={'<STR_LIT>': Consts.mediaTypeTopicsPreview},<EOL>input=post_parameters<EOL>)<EOL>
:calls: `PUT /repos/:owner/:repo/topics <http://developer.github.com/v3/repos>`_
:param topics: list of strings
:rtype: None