As per documentation:
URL = “URL-DUMMY/api/dashboards/db”
data = {
“dashboard”: “{ ‘id’: null, ‘uid’: null, ‘title’: ‘Production Overview’, ‘tags’: [ ‘templated’ ], ‘timezone’: ‘browser’, ‘schemaVersion’: 6, ‘version’: 0 }”, “message”: “Made changes to xyz”}
headers = {“Accept”: “application/json”, “Content-Type”: “application/json”,
“Authorization”: “Bearer LONG TOKEN”}
response = session.post(
url, data=data, headers=headers, allow_redirects=False)
RETURNS:
b’{“message”:“bad request data”}’
Not sure what the issue is