Models
Create a model definition
Changed onpost/api/v1/models/{tenant}/{name}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/v1/models/{tenant}/{name}
- Auth: none declared
Path parameters
tenantstring required
namestring required
Request body
Example request
{
"description": "ResNet-50 image-classification model.",
"displayName": "ResNet-50",
"labels": {
"team": "vision"
},
"name": "resnet50"
}Response
Model definition created.
Example response
{
"annotations": {
"git-commit": "8c1f4e2"
},
"createdAt": "2026-06-20T08:00:00Z",
"description": "ResNet-50 image-classification model.",
"displayName": "ResNet-50",
"id": "1f2e3d4c-5b6a-7980-abcd-ef0123456789",
"kind": "model",
"labels": {
"team": "vision"
},
"latestVersion": "1.4.0",
"latestVersionAt": "2026-06-28T09:30:00Z",
"name": "resnet50",
"namespace": "team-vision",
"owner": "li.wei",
"ownerId": "3a2b1c0d-4e5f-6789-abcd-ef0123456789",
"spec": {
"format": "safetensors",
"framework": "pytorch",
"parameters": "25.6M",
"task": "image-classification"
},
"tenantName": "team-vision",
"updatedAt": "2026-06-28T09:30:00Z",
"versionCount": 3
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
added to the
request propertyallOflist - breaking
added to the
request propertyallOflist - breaking
the
request property type changed fromobjectto no type - breaking
the
request property type changed fromobjectto no type - breaking
the
response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromobjectto no type for status - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status
- breaking