diff --git a/src/utils/token.py b/src/utils/token.py index 19b17e5..35d9dc3 100644 --- a/src/utils/token.py +++ b/src/utils/token.py @@ -97,7 +97,7 @@ def _create_keycloak_client(admin_token: str, analysis_id: str) -> None: headers = {"Authorization": f"Bearer {admin_token}", "Content-Type": "application/json"} client_data = {"clientId": analysis_id} - response = requests.post(url_create_client, headers=headers, data=client_data) + response = requests.post(url_create_client, headers=headers, json=client_data) response.raise_for_status()