'Update counterexample.
Update the text of a counterexample. Counterexamples are
examples that have been marked as irrelevant input.
:param workspace_id: The workspace ID.
:param text: The text of a user input counterexample (for example,
`What are you wearing?`).
:param new_text: The new text of a user input counterexample.'

def update_counterexample(self, workspace_id, text, new_text=None):

    params = {'version': self.version}
    data = {'text': new_text}
    return self.request(method='POST', url='/v1/workspaces/{0}/counterexamples/{1}'.format(workspace_id, text), params=params, json=data, accept_json=True)
