fixed phishing_campaign and phishing_scenarios to properly use - instead of _ in the api endpoint

This commit is contained in:
Peter Annabel 2025-07-29 10:21:40 -05:00
parent 835b0d3649
commit f305f898f0
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "pyhuntress"
version = "0.2.8"
version = "0.2.9"
authors = [
{ name="Peter Annabel", email="peter.annabel@gmail.com" },
]

View File

@ -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)

View File

@ -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)