Volume Service

Create a remote model upload

POST
/projects/{projectId}/models/uploads

Starts an asynchronous job that imports model files from Hugging Face or a presigned URL into a registered model and creates a model revision when the import completes.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

projectId*string

Project identifier.

Request Body

application/json

Request parameters for creating a remote upload.

modelId*string

ID of the registered model that will receive the imported files.

remoteUrl*string

Hugging Face repository URL or presigned archive URL to import.

token?string

Optional source credential used to access a private remote location. The value is write-only and is not returned.

Response Body

application/json

application/json

curl -X POST "https://example.com/projects/string/models/uploads" \  -H "Content-Type: application/json" \  -d '{    "modelId": "string",    "remoteUrl": "string"  }'
{  "id": "string",  "projectId": "string",  "modelId": "string",  "remoteUrl": "string",  "status": "REMOTE_UPLOAD_STATUS_PENDING",  "statusMessage": "string",  "restartCount": 0,  "maxRestarts": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}