cURL
curl --request PATCH \ --url https://api.example.com/api/models/{modelId}/files/{fileId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "action": "start" } '
{ "data": { "status": "in_progress", "progress": { "fileId": "<string>", "modelId": "<string>", "filename": "<string>", "downloadedRatio": 123, "transferredBytes": 123, "totalBytes": 123, "paused": true, "downloadTimeTaken": 123, "averageMbps": 123 }, "localPath": "<string>" } }
Enter your API key here
ID of the model
ID of the file
Action to perform on the download
start
pause
resume
Download status updated successfully
Show child attributes
Was this page helpful?