'Update entity value synonym.
Update the information about a synonym for an entity value.
:param workspace_id: The workspace ID.
:param entity: The name of the entity.
:param value: The text of the entity value.
:param synonym: The text of the synonym.
:param new_synonym: The text of the synonym.'

def update_synonym(self, workspace_id, entity, value, synonym, new_synonym=None):

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