Skip to main content
Question

Account setting doesn't saved after changes. API put requests doesn't have response.

  • February 21, 2024
  • 3 replies
  • 11 views

Forum|alt.badge.img+2

Account setting doesn't saved after changes. API put requests doesn't have response.
User is automatically logged out after sending requests and refreshing the page.

This bug reproduce only in account athletes: 29844192

3 replies

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • February 21, 2024

The updateLoggedInAthlete API call does not include the athlete ID in the URL. It updates the athlete whose token you provide in your auth header. Your PUT URL should just be https://www.strava.com/api/v3/athlete and you pass an access token and the new weight

i.e. PUT https://www.strava.com/api/v3/athlete?access_token=[ACCESS_TOKEN_HERE]&weight=[WEIGHT_IN_KG]


Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • February 21, 2024

The fact is that any request to update the athlete does not work.
All request doesn't has response.

Expected result in other account is {"success": true}


Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • February 21, 2024

For my access_token - param 'data access expiration time' : 1688637303 (unix)
Is it possible that the token isn't valid and I can't update the information, but the authorization works?