From 5c74fb15f2188af3cbb48dbd657c3051336718cd Mon Sep 17 00:00:00 2001 From: Matt Hrono <37225540+mhrono@users.noreply.github.com> Date: Mon, 14 Jul 2025 09:25:03 -0400 Subject: [PATCH] Update auth.py update endpoint url for client credentials request to use the current /v1 api --- src/jamf_pro_sdk/clients/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jamf_pro_sdk/clients/auth.py b/src/jamf_pro_sdk/clients/auth.py index 2f0079d..e261689 100644 --- a/src/jamf_pro_sdk/clients/auth.py +++ b/src/jamf_pro_sdk/clients/auth.py @@ -157,7 +157,7 @@ def __init__(self, client_id: str, client_secret: str): def _request_access_token(self) -> AccessToken: """Request a new an API access token using client credentials flow.""" with self._client.session.post( - url=f"{self._client.base_server_url}/api/oauth/token", + url=f"{self._client.base_server_url}/api/v1/oauth/token", headers={ "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded",