File Upload Asynchronous - TrainingPeaks/PartnersAPI GitHub Wiki
Upload a new device file to a user account.
Upload File
- Resource endpoints:/v3/file
- HTTP Method: POST
- OAuth Scope Required: file:write
- Body: Uploaded Workout File Data
- Returns: HTTP Accepted (202), with file status URL in
Locationheader
Check Upload Status
- Resource endpoints:/v3/status/{fileTrackingId} (returned by Upload File endpoint)
- HTTP Method: GET
- OAuth Scope Required: file:write
- Returns:
- if fileTrackingId is valid, http status code = 200, and FileStatus object is returned
FileStatus Object
| Property | Type | Notes |
|---|---|---|
| Completed | bool | true if processing has finished |
| Status | string | Success or error details |
| WorkoutIds | long[] | list of Workout IDs created |