From f305f898f07c7b040b572e43708e321a75fb54da Mon Sep 17 00:00:00 2001 From: Peter Annabel Date: Tue, 29 Jul 2025 10:21:40 -0500 Subject: [PATCH] fixed phishing_campaign and phishing_scenarios to properly use - instead of _ in the api endpoint --- pyproject.toml | 2 +- .../endpoints/managedsat/AccountsIdPhishingCampaignsEndpoint.py | 2 +- .../endpoints/managedsat/AccountsIdPhishingScenariosEndpoint.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4709382..b48be95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pyhuntress" -version = "0.2.8" +version = "0.2.9" authors = [ { name="Peter Annabel", email="peter.annabel@gmail.com" }, ] diff --git a/src/pyhuntress/endpoints/managedsat/AccountsIdPhishingCampaignsEndpoint.py b/src/pyhuntress/endpoints/managedsat/AccountsIdPhishingCampaignsEndpoint.py index bfd667b..b8cda8c 100644 --- a/src/pyhuntress/endpoints/managedsat/AccountsIdPhishingCampaignsEndpoint.py +++ b/src/pyhuntress/endpoints/managedsat/AccountsIdPhishingCampaignsEndpoint.py @@ -17,7 +17,7 @@ class AccountsIdPhishingCampaignsEndpoint( IPaginateable[SATPhishingCampaigns, HuntressSATRequestParams], ): def __init__(self, client, parent_endpoint=None) -> None: - HuntressEndpoint.__init__(self, client, "phishing_campaigns", parent_endpoint=parent_endpoint) + HuntressEndpoint.__init__(self, client, "phishing-campaigns", parent_endpoint=parent_endpoint) IGettable.__init__(self, SATPhishingCampaigns) IPaginateable.__init__(self, SATPhishingCampaigns) diff --git a/src/pyhuntress/endpoints/managedsat/AccountsIdPhishingScenariosEndpoint.py b/src/pyhuntress/endpoints/managedsat/AccountsIdPhishingScenariosEndpoint.py index a47d06e..d204a78 100644 --- a/src/pyhuntress/endpoints/managedsat/AccountsIdPhishingScenariosEndpoint.py +++ b/src/pyhuntress/endpoints/managedsat/AccountsIdPhishingScenariosEndpoint.py @@ -17,7 +17,7 @@ class AccountsIdPhishingScenariosEndpoint( IPaginateable[SATPhishingScenarios, HuntressSATRequestParams], ): def __init__(self, client, parent_endpoint=None) -> None: - HuntressEndpoint.__init__(self, client, "phishing_scenarios", parent_endpoint=parent_endpoint) + HuntressEndpoint.__init__(self, client, "phishing-scenarios", parent_endpoint=parent_endpoint) IGettable.__init__(self, SATPhishingScenarios) IPaginateable.__init__(self, SATPhishingScenarios)