Skip to main content
Upload an ONNX model file (model.tar.gz) to a revision.

POST /revisions/:id/data (Command: upload)

Request Body

ParameterTypeRequiredDescription
enginestringYesMust be onnx.
commandstringYesMust be upload.
pathstringYesFile name, must be model.tar.gz.
sizeintegerYesSize of the file in bytes.

Response

ParameterTypeDescription
operation_idstringID of the background upload operation.
urlstringPresigned S3 URL to upload the file to (if applicable).

Example

{
  "engine": "onnx",
  "command": "upload",
  "path": "model.tar.gz",
  "size": 154829
}