diff --git a/cloudkittyclient/v2/reprocessing.py b/cloudkittyclient/v2/reprocessing.py index 50d2b56..afa703b 100644 --- a/cloudkittyclient/v2/reprocessing.py +++ b/cloudkittyclient/v2/reprocessing.py @@ -19,8 +19,6 @@ class ReprocessingManager(base.BaseManager): url = '/v2/task/reprocesses' - url_to_post = '/v2/task/reprocess' - def get_reprocessing_tasks(self, offset=0, limit=100, scope_ids=[], order="DESC", **kwargs): """Returns a paginated list of reprocessing tasks. @@ -75,4 +73,4 @@ class ReprocessingManager(base.BaseManager): body = dict(filter(lambda elem: bool(elem[1]), body.items())) - return self.api_client.post(self.url_to_post, json=body).json() + return self.api_client.post(self.url, json=body).json() diff --git a/releasenotes/notes/fix-reprocessing-post-request-95512686754ee271.yaml b/releasenotes/notes/fix-reprocessing-post-request-95512686754ee271.yaml new file mode 100644 index 0000000..dc32bf3 --- /dev/null +++ b/releasenotes/notes/fix-reprocessing-post-request-95512686754ee271.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixed a bug where creating a reprocessing task would fail due to sending a + POST request to the wrong endpoint.