Playback
Save watch progress
Save the watch progress of a file
PUT
Send about every 10 seconds during playback, and on pause. A write with an updatedAt older than the stored one is ignored; the response is the stored progress. 409 playback_stopped means the user stopped this device's session: stop the player.
bearer progress:writeheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: progress:write
id*stringLength
1 <= lengthapplication/json- body
positionSeconds*numberRange
0 <= value <= 10000000durationSeconds*numberRange
0 <= value <= 10000000clientId?stringLength
length <= 100updatedAt?stringFormat
date-timeStored progress
application/json- response
fileId*stringpositionSeconds*numberRange
0 <= valuedurationSeconds*numberRange
0 <= valuecompleted*booleanclientId*string|nullupdatedAt*stringFormat
date-timecurl -X PUT 'https://fastwater.app/v1/files/string/progress' \ -H 'Content-Type: application/json' \ -d '{ "positionSeconds": 0, "durationSeconds": 0}'Example Response
{ "fileId": "string", "positionSeconds": 0, "durationSeconds": 0, "completed": true, "clientId": "string", "updatedAt": "2019-08-24T14:15:22Z"}