'Update entity value.
Update the content of a value for an entity.
:param workspace_id: The workspace ID.
:param entity: The name of the entity.
:param value: The text of the entity value.
:param new_value: The text of the entity value.
:param new_metadata: Any metadata related to the entity value.
:param new_synonyms: An array of synonyms for the entity value.'

def update_value(self, workspace_id, entity, value, new_value=None, new_metadata=None, new_synonyms=None):

    params = {'version': self.version}
    data = {'value': new_value, 'metadata': new_metadata, 'synonyms': new_synonyms}
    return self.request(method='POST', url='/v1/workspaces/{0}/entities/{1}/values/{2}'.format(workspace_id, entity, value), params=params, json=data, accept_json=True)
