Skip to main content
Answer

modify visibility

  • January 14, 2024
  • 3 replies
  • 39 views

Forum|alt.badge.img+4

I have written a python script to modify the visibility of all my recorded activities from "only_me" to "everyone". The script works and the return from the api indicates that the update was performed successfully. However in reality the privacy flag is not changed. Is that a limitation of the api?

Best answer by ActivityFix

You cannot change privacy on activities since roughly 2018 (I think? It's been a while...). The same goes for map visibility and deleting activities. You probably got a success code since I believe the endpoint ignores any parameters which aren't allowed rather than flagging them as an error.

3 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • January 16, 2024

I'm surprised the API gave you a success code because  https://developers.strava.com/docs/reference/#api-models-UpdatableActivity states there is no key to change the visibility.


ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • Answer
  • January 18, 2024

You cannot change privacy on activities since roughly 2018 (I think? It's been a while...). The same goes for map visibility and deleting activities. You probably got a success code since I believe the endpoint ignores any parameters which aren't allowed rather than flagging them as an error.


Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • January 19, 2024

Thank you all for your responses. I am disappointed that the api only allows for such limited interactions. But I am grateful that you explained that to me, so that I won't waste more time trying to make it work.