UploadsApi
All URIs are relative to https://www.strava.com/api/v3
| Method | HTTP request | Description |
|---|---|---|
| create_upload | POST /uploads | Upload Activity |
| getuploadby_id | GET /uploads/{uploadId} | Get Upload |
create_upload
createupload(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, responsestream::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
| Name | Type | Description | Notes |
|---|---|---|---|
| _api | UploadsApi | API context |
Optional Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| file | String | The uploaded file. | |
| name | String | The desired name of the resulting activity. | [default to nothing] |
| description | String | The desired description of the resulting activity. | [default to nothing] |
| trainer | String | Whether the resulting activity should be marked as having been performed on a trainer. | [default to nothing] |
| commute | String | Whether the resulting activity should be tagged as a commute. | [default to nothing] |
| data_type | String | The format of the uploaded file. | [default to nothing] |
| external_id | String | The desired external identifier of the resulting activity. | [default to nothing] |
Return type
Authorization
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
getuploadbyid(api::UploadsApi, uploadid::Int64; _mediaType=nothing) -> Upload, OpenAPI.Clients.ApiResponse <br/> getuploadbyid(api::UploadsApi, responsestream::Channel, upload_id::Int64; _mediaType=nothing) -> Channel{ Upload }, OpenAPI.Clients.ApiResponse
Get Upload
Returns an upload for a given identifier. Requires activity:write scope.
Required Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| _api | UploadsApi | API context | |
| upload_id | Int64 | The identifier of the upload. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]