diff --git a/amocrm/v2/links.py b/amocrm/v2/links.py index 394c388..a032520 100644 --- a/amocrm/v2/links.py +++ b/amocrm/v2/links.py @@ -7,7 +7,7 @@ def link(self, for_entity, to_entity, main=False, metadata=None): return self._set("link", for_entity, to_entity, main=main, metadata=metadata) def unlink(self, for_entity, to_entity): - return self._set("link", for_entity, to_entity) + return self._set("unlink", for_entity, to_entity) def _set(self, direction, for_entity, to_entity, main=False, metadata=None): path = "{}/{}/{}".format(for_entity._path, for_entity.id, direction)