'Update entity.
Update an existing entity with new or modified data.
:param workspace_id: The workspace ID.
:param entity: The name of the entity.
:param new_entity: The new name of the entity.
:param new_description: The new description of the entity.
:param new_metadata: Any new metadata related to the entity.
:param new_fuzzy_match: Whether to use fuzzy matching for the entity.
:param new_values: A new array of entity values.'

def update_entity(self, workspace_id, entity, new_entity=None, new_description=None, new_metadata=None, new_fuzzy_match=None, new_values=None):

    params = {'version': self.version}
    data = {'entity': new_entity, 'description': new_description, 'metadata': new_metadata, 'fuzzy_match': new_fuzzy_match, 'values': new_values}
    return self.request(method='POST', url='/v1/workspaces/{0}/entities/{1}'.format(workspace_id, entity), params=params, json=data, accept_json=True)
