POST api/Cyclist/UpdateStravaLink
To link the cyclist to strava, after the cyclist clicks on the Strava web UI to accept, a token gets passed back. Use this function to update the Strava token for the cyclist. This token will be used for the back end to integrate to Strava and continuously fetch and post bike and ride information
Request Information
URI Parameters
None.
Body Parameters
CyclistStravaLinkName | Description | Type | Additional information |
---|---|---|---|
CyclistID | integer |
None. |
|
Strava_Token | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "CyclistID": 1, "Strava_Token": "sample string 2" }
application/xml, text/xml
Sample:
<CyclistStravaLink xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models"> <CyclistID>1</CyclistID> <Strava_Token>sample string 2</Strava_Token> </CyclistStravaLink>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UserDetailName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
UserName | string |
None. |
|
string |
None. |
||
Name | string |
None. |
|
Surname | string |
None. |
|
Description | string |
None. |
|
PartnerID | integer |
None. |
|
PhoneNumber | string |
None. |
|
IsSuperUser | boolean |
None. |
|
IsStravaLinked | boolean |
None. |
|
ImageURL | string |
None. |
|
GenderID | integer |
None. |
|
Gender | string |
None. |
|
DateOfBirth | date |
None. |
|
UnitsOfMeasureID | integer |
None. |
|
TechnicianID | integer |
None. |
|
Locale | string |
None. |
|
TwoFactorEnabled | boolean |
None. |
|
GDPRMarketingConsent | boolean |
None. |
|
GDPRMarketingConsentDate | date |
None. |
|
UserRoles | Collection of UserPartnerRoles |
None. |
Response Formats
application/json, text/json
Sample:
{ "ID": 1, "UserName": "sample string 2", "Email": "sample string 3", "Name": "sample string 4", "Surname": "sample string 5", "Description": "sample string 6", "PartnerID": 7, "PhoneNumber": "sample string 8", "IsSuperUser": true, "IsStravaLinked": true, "ImageURL": "sample string 11", "GenderID": 12, "Gender": "sample string 13", "DateOfBirth": "2025-09-05T16:03:41.2494253+00:00", "UnitsOfMeasureID": 14, "TechnicianID": 15, "Locale": "sample string 16", "TwoFactorEnabled": true, "GDPRMarketingConsent": true, "GDPRMarketingConsentDate": "2025-09-05T16:03:41.2494253+00:00", "UserRoles": [ { "RoleID": 1, "PartnerID": 2 }, { "RoleID": 1, "PartnerID": 2 } ] }
application/xml, text/xml
Sample:
<UserDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models"> <DateOfBirth>2025-09-05T16:03:41.2494253+00:00</DateOfBirth> <Description>sample string 6</Description> <Email>sample string 3</Email> <GDPRMarketingConsent>true</GDPRMarketingConsent> <GDPRMarketingConsentDate>2025-09-05T16:03:41.2494253+00:00</GDPRMarketingConsentDate> <Gender>sample string 13</Gender> <GenderID>12</GenderID> <ID>1</ID> <ImageURL>sample string 11</ImageURL> <IsStravaLinked>true</IsStravaLinked> <IsSuperUser>true</IsSuperUser> <Locale>sample string 16</Locale> <Name>sample string 4</Name> <PartnerID>7</PartnerID> <PhoneNumber>sample string 8</PhoneNumber> <Surname>sample string 5</Surname> <TechnicianID>15</TechnicianID> <TwoFactorEnabled>true</TwoFactorEnabled> <UnitsOfMeasureID>14</UnitsOfMeasureID> <UserName>sample string 2</UserName> <UserRoles xmlns:d2p1="http://schemas.datacontract.org/2004/07/Hub.Server.Entities.Users"> <d2p1:UserPartnerRoles> <d2p1:PartnerID>2</d2p1:PartnerID> <d2p1:RoleID>1</d2p1:RoleID> </d2p1:UserPartnerRoles> <d2p1:UserPartnerRoles> <d2p1:PartnerID>2</d2p1:PartnerID> <d2p1:RoleID>1</d2p1:RoleID> </d2p1:UserPartnerRoles> </UserRoles> </UserDetail>