Skip to content

Commit c37ddd3

Browse files
Merge pull request #124 from Dynatrace-James-Kitson/kitson
fix dashboard 'put' method
2 parents 48d4e2e + f9a9fe9 commit c37ddd3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dynatrace/configuration_v1/dashboard.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def post(self, body: dict):
4949
return self.__http_client.make_request("/api/config/v1/dashboards", params=body, method="POST")
5050

5151
def put(self, dashboard_id: str, body: dict):
52-
params = {"id": dashboard_id, "body": body}
53-
return self.__http_client.make_request(f"/api/config/v1/dashboards/{dashboard_id}", params=params, method="PUT")
52+
return self.__http_client.make_request(f"/api/config/v1/dashboards/{dashboard_id}", params=body, method="PUT")
5453

5554
def delete(self, dashboard_id: str) -> Response:
5655
"""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dt"
3-
version = "1.2.0"
3+
version = "1.2.1"
44
description = "Dynatrace API Python client"
55
readme = "README.md"
66
authors = ["David Lopes <[email protected]>"]

0 commit comments

Comments
 (0)