put_update_activity_by_id
Update a Strava activity's details such as name, type, commute, or gear by specifying its activity ID. Requires write access.
Instructions
Update Activity
Endpoint: PUT /activities/{id}
Description: Updates the given activity that is owned by the authenticated athlete. Requires activity:write. Also requires activity:read_all in order to update Only Me activities
This operation modifies Strava data. Scopes: required: activity:write; conditional: activity:read_all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The identifier of the activity. | |
| name | No | The name of the activity | |
| type | No | An enumeration of the types an activity may have. Note that this enumeration does not include new sport types (e.g. MountainBikeRide, EMountainBikeRide), activities with these sport types will have the corresponding activity type (e.g. Ride for MountainBikeRide, EBikeRide for EMountainBikeRide) | |
| commute | No | Whether this activity is a commute | |
| gear_id | No | Identifier for the gear associated with the activity. ‘none’ clears gear from activity | |
| trainer | No | Whether this activity was recorded on a training machine | |
| sport_type | No | An enumeration of the sport types an activity may have. Distinct from ActivityType in that it has new types (e.g. MountainBikeRide) | |
| description | No | The description of the activity | |
| hide_from_home | No | Whether this activity is muted |