Tx. Yes you need to update the athlete’s settings for the sport:
PUT /api/v1/athlete/{athleteId}/sport-settings/{id/type}
{ "ftp": 300, "indoor_ftp": 280 }
You can find the current settings in the sportSettings field on athlete.
You can supply an activity type (e.g. “Ride”, “Run”) instead of an ID to update settings for the matching sport.
You need to have SETTINGS:WRITE scope for the athlete.
I see you app is not displayed on the “apps that can integrate with Intervals.icu” section on the /settings page. I can enable this for your app if you like?
Not at the moment but you can list and download old activities that are already on Intervals.icu. What would be the use-case for having “download old data” part of the API?
Some athletes I coach on Intervals.icu don’t log into the app regularly, so I sometimes miss their data (but only if data come from Strava of course). It’s a bit of a pain having to go to their profile settings to update the data
GET https://intervals.icu/api/v1/athlete/{{athleteid}}/events/6790756750 is giving
{
"status": 500,
"error": "org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: \"6790756750\""
}
and POST https://intervals.icu/api/v1/athlete/{{athleteid}}/events is giving
{
"status": 403,
"error": "Access denied"
}
I feel I am making some silly mistake here. Please help me out.