POST api/Cyclist/SaveImage

Saves an image file for this cyclist. The image will be assigned a new name, and uses name provided only for the extension (.jpg for example) Once saved, the image can be retrieved via the ImageURL property on cyclist

Request Information

URI Parameters

None.

Body Parameters

CyclistImageUploadModel
NameDescriptionTypeAdditional information
CyclistID

integer

None.

Content

Provide the content in base64 string

string

None.

Filename

filename is only used to determine the extension. A new filename will be generated

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CyclistID": 1,
  "Content": "sample string 2",
  "Filename": "sample string 3"
}

application/xml, text/xml

Sample:
<CyclistImageUploadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <Content>sample string 2</Content>
  <CyclistID>1</CyclistID>
  <Filename>sample string 3</Filename>
</CyclistImageUploadModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserDetail
NameDescriptionTypeAdditional information
ID

integer

None.

UserName

string

None.

Email

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:02:07.7391121+00:00",
  "UnitsOfMeasureID": 14,
  "TechnicianID": 15,
  "Locale": "sample string 16",
  "TwoFactorEnabled": true,
  "GDPRMarketingConsent": true,
  "GDPRMarketingConsentDate": "2025-09-05T16:02:07.7391121+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:02:07.7391121+00:00</DateOfBirth>
  <Description>sample string 6</Description>
  <Email>sample string 3</Email>
  <GDPRMarketingConsent>true</GDPRMarketingConsent>
  <GDPRMarketingConsentDate>2025-09-05T16:02:07.7391121+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>