stravalib.client.Client.update_activity

Client.update_activity(activity_id, name=None, activity_type=None, private=None, commute=None, trainer=None, gear_id=None, description=None, device_name=None)[source]

Updates the properties of a specific activity.

https://developers.strava.com/docs/reference/#api-Activities-updateActivityById

Parameters
  • activity_id (int) – The ID of the activity to update.

  • name – The name of the activity.

  • activity_type – The activity type (case-insensitive). Possible values: ride, run, swim, workout, hike, walk, nordicski, alpineski, backcountryski, iceskate, inlineskate, kitesurf, rollerski, windsurf, workout, snowboard, snowshoe

  • private – Whether the activity is private.

  • commute – Whether the activity is a commute.

  • trainer – Whether this is a trainer activity.

  • gear_id – Alpha-numeric ID of gear (bike, shoes) used on this activity.

  • description – Description for the activity.

  • device_name – Device name for the activity

Returns

The updated activity.

Return type

stravalib.model.Activity