The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
10-11-2023 06:53 AM
Hi! I have a problem with my Telegram bot which uploads activity files to your Strava accounts.
I've made it so you first publish the activity through the bot, and then you can change it's name/description/type etc.
And here lies the problem: when the bot changes the type of an activity through the API, the default gear doesn't set automatically, so you have to log in the Strava app and change it manually.
11-08-2023 07:35 AM
Based on the API documentation it looks like you can call UpdateActivity with an instance of an UpdatableActivity which includes a `gear_id`.
Also, summary_gear which comes back from GET authenticated athlete looks it should include a boolean called `primary` indicating if it's the default gear. But you're right, I don't see a way to change the primary flag.
Welcome to the Community - here is your guide to help you get started!