Closed polcar closed 8 months ago
Garth already has a PUT method.
You should be doing the following:
self.garth.put("connectapi", url, json=payload, api=True)
There's an example in the tests to update heart rate zones.
HTH
It works. Thanke you very much.
@polcar I will add this to new version as set_activity_name(id, name)
Hi,
I try to extend API to modify the name of an activity:
I must add
x-http-method-override: PUT
toheaders
to avoid 400 as HTTP status code. But now I am endig with:When I use the Bearer token from Chrome session in
authorization
header, I am able to change an activity name. It looks like the authentication must me improved, I am correct?