Skip to main content
PATCH
/
api
/
models
/
{modelId}
/
files
/
{fileId}
Update download status of a model file
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>"
  }
}

Authorizations

Authorization
string
header
required

Enter your API key here

Path Parameters

modelId
string
required

ID of the model

fileId
string
required

ID of the file

Body

application/json
action
enum<string>
required

Action to perform on the download

Available options:
start,
pause,
resume

Response

Download status updated successfully

data
object
required