Skip to main content
Question

Create activity with elevation using the API


ibex_climbs
Forum|alt.badge.img+2

I'm currently working on integrating my climbing app with Strava, and I've hit a bit of a roadblock. When I manually create an activity on Strava through the browser, I have the option to enter the elevation. However, when I try to do the same thing programmatically using the createActivity API, I can't seem to find an option to specify the elevation.

This is crucial for my climbing app's functionality, and without it, integrating with Strava is kind of pointless. Can anyone shed some light on what I might be missing here? Any help or insights would be greatly appreciated. Thanks in advance!

3 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 932 replies
  • May 4, 2024

You have to use the uploads endpoint for that and upload the activity file that contains the elevation. The manual activity was only ever suited for indoor activities or as a workaround for missing parts of an outdoor activity.


ibex_climbs
Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • 2 replies
  • May 4, 2024

I did try to upload a gpx file with elevation data, but Strava "corrected" the elevations, overwriting the provided ones.  Is there any documentation available from Strava about the necessary structure of those uploaded files?

 


@Jan_Mantau wrote:

The manual activity was only ever suited for indoor activities or as a workaround for missing parts of an outdoor activity.


This doesn't seem to be a limitation of a manual activity, but a limitation of the API since elevation can be specified when creating a manual activity using the website.


ibex_climbs
Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • 2 replies
  • May 4, 2024

@ibex_climbs wrote:

This doesn't seem to be a limitation of a manual activity, but a limitation of the API since elevation can be specified when creating a manual activity using the website.


or perhaps it's supported in the API and it's just missing in the documentation!?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings