'Update user input example.
Update the text of a user input example.
:param workspace_id: The workspace ID.
:param intent: The intent name (for example, `pizza_order`).
:param text: The text of the user input example.
:param new_text: The text of the user input example.'

def update_example(self, workspace_id, intent, text, new_text=None):

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