'Update intent.
Update an existing intent with new or modified data. You must provide data defining the content of the updated intent.
:param workspace_id: The workspace ID.
:param intent: The intent name (for example, `pizza_order`).
:param new_intent: The new intent name.
:param new_description: The description of the intent.
:param new_examples: An array of new user input examples.'

def update_intent(self, workspace_id, intent, new_intent=None, new_description=None, new_examples=None):

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