Explore Plans
Mobile menu Close menu
StravaStrava

Create an activity

This Action will create a new activity in Strava.

Developer info

API endpoint slug
strava.create_an_activity
Filter code method
Strava.createAnActivity.skip(string?: reason)
Runtime method
runAction("strava.create_an_activity", {})

Action fields

Name Text input > Short text

Label
Activity name
Helper text
Required
Slug
name
Required
true
Can have default value
true
Filter code method
Strava.createAnActivity.setName(string: name)

Type Dropdown list

Label
Activity type
Helper text
Required
Slug
type
Required
true
Can have default value
true
Filter code method
Strava.createAnActivity.setType(string: type)

Elapsed time Text input > Other

Label
Elapsed Time
Helper text
Required. In seconds.
Slug
elapsed_time
Required
true
Can have default value
true
Filter code method
Strava.createAnActivity.setElapsedTime(string: elapsedTime)

Description Text input > Long text

Label
Description
Helper text
Optional
Slug
description
Required
false
Can have default value
true
Filter code method
Strava.createAnActivity.setDescription(string: description)

Distance Text input > Other

Label
Distance
Helper text
In meters. Optional.
Slug
distance
Required
false
Can have default value
true
Filter code method
Strava.createAnActivity.setDistance(string: distance)

Keep private Dropdown list

Label
Keep private?
Helper text
If not selected, activity will be public.
Slug
keep_private
Required
false
Can have default value
true
Filter code method
Strava.createAnActivity.setKeepPrivate(string: keepPrivate)

Commute Dropdown list

Label
Is this activity a commute?
Helper text
If not selected, activity will not be marked as a commute.
Slug
commute
Required
false
Can have default value
true
Filter code method
Strava.createAnActivity.setCommute(string: commute)