UploadsApi

All URIs are relative to https://www.strava.com/api/v3

MethodHTTP requestDescription
create_uploadPOST /uploadsUpload Activity
getuploadby_idGET /uploads/{uploadId}Get Upload

create_upload

create_upload(api::UploadsApi; file=nothing, name=nothing, description=nothing, trainer=nothing, commute=nothing, `datatype=nothing,externalid=nothing, _mediaType=nothing) ->Upload,OpenAPI.Clients.ApiResponse<br/>createupload(_api::UploadsApi, response_stream::Channel;file=nothing,name=nothing,description=nothing,trainer=nothing,commute=nothing,datatype=nothing,externalid=nothing, _mediaType=nothing) ->Channel{Upload},OpenAPI.Clients.ApiResponse`

Upload Activity

Uploads a new data file to create an activity from. Requires activity:write scope.

Required Parameters

NameTypeDescriptionNotes
_apiUploadsApiAPI context

Optional Parameters

NameTypeDescriptionNotes
fileStringThe uploaded file.
nameStringThe desired name of the resulting activity.[default to nothing]
descriptionStringThe desired description of the resulting activity.[default to nothing]
trainerStringWhether the resulting activity should be marked as having been performed on a trainer.[default to nothing]
commuteStringWhether the resulting activity should be tagged as a commute.[default to nothing]
data_typeStringThe format of the uploaded file.[default to nothing]
external_idStringThe desired external identifier of the resulting activity.[default to nothing]

Return type

Upload

Authorization

strava_oauth

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getuploadby_id

get_upload_by_id(api::UploadsApi, `uploadid::Int64; _mediaType=nothing) ->Upload,OpenAPI.Clients.ApiResponse<br/>getuploadbyid`(api::UploadsApi, responsestream::Channel, `uploadid::Int64; _mediaType=nothing) ->Channel{Upload},OpenAPI.Clients.ApiResponse`

Get Upload

Returns an upload for a given identifier. Requires activity:write scope.

Required Parameters

NameTypeDescriptionNotes
_apiUploadsApiAPI context
upload_idInt64The identifier of the upload.

Return type

Upload

Authorization

strava_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]