Get a model version from model history

get/models/{modelId}/history/{versionId}

Returns the model version from the model history that is associated with the specified model ID and version ID.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2025-03-10T14:48:50.335Z",
3 "createdBy": "sasdemo",
4 "modifiedTimeStamp": "2025-03-10T14:48:50.335Z",
5 "modifiedBy": "sasdemo",
6 "id": "692ab9b1-69c8-4ded-85cb-1a0edca9796d",
7 "name": "QS_Reg1",
8 "description": "Logistic Regression Model",
9 "role": "plain",
10 "scoreCodeType": "dataStep",
11 "algorithm": "logisticreg",
12 "function": "classification",
13 "modeler": "sasdemo",
14 "modelType": "datastep",
15 "trainTable": "/dataTables/dataSources/cas~fs~cas-shared-default~fs~Public/tables/HMEQ_TRAIN",
16 "eventProbVar": "EM_EVENTPROBABILITY",
17 "targetVariable": "BAD",
18 "targetEvent": "1",
19 "targetLevel": "BINARY",
20 "tool": "Model Studio",
21 "toolVersion": "8.3",
22 "externalModelId": "407fbf89-7085-49c3-811a-7f5d912e4676",
23 "provider": "Azure",
24 "costPerCall": "0",
25 "immutable": true,
26 "folderRef": "/folders/folders/eec95375-cfa7-45a6-813a-0b67436e6d2f",
27 "modelVersionName": "1.0",
28 "inputVariables": [],
29 "outputVariables": [],
30 "modelVersions": [],
31 "modelLocks": null,
32 "globalTags": null,
33 "links": [
34 {
35 "method": "GET",
36 "rel": "up",
37 "href": "/modelRepository/models/a02ea190-899c-4ff4-92a7-46c28a1c61e3/history",
38 "uri": "/modelRepository/models/a02ea190-899c-4ff4-92a7-46c28a1c61e3/history",
39 "type": "application/vnd.sas.collection",
40 "itemType": "application/vnd.sas.models.model.version"
41 },
42 {
43 "method": "GET",
44 "rel": "self",
45 "href": "/modelRepository/models/a02ea190-899c-4ff4-92a7-46c28a1c61e3/history/692ab9b1-69c8-4ded-85cb-1a0edca9796d",
46 "uri": "/modelRepository/models/a02ea190-899c-4ff4-92a7-46c28a1c61e3/history/692ab9b1-69c8-4ded-85cb-1a0edca9796d",
47 "type": "application/vnd.sas.models.model.version"
48 },
49 {
50 "method": "GET",
51 "rel": "contents",
52 "href": "/modelRepository/models/a02ea190-899c-4ff4-92a7-46c28a1c61e3/history/692ab9b1-69c8-4ded-85cb-1a0edca9796d/contents",
53 "uri": "/modelRepository/models/a02ea190-899c-4ff4-92a7-46c28a1c61e3/history/692ab9b1-69c8-4ded-85cb-1a0edca9796d/contents",
54 "type": "application/vnd.sas.collection",
55 "itemType": "application/vnd.sas.models.model.content"
56 }
57 ],
58 "version": 0,
59 "modelId": "a02ea190-899c-4ff4-92a7-46c28a1c61e3",
60 "modelLastModifiedBy": "sasdemo",
61 "modelLastModifiedTimeStamp": "2025-03-10T14:48:49.36762Z",
62 "modelCreatedBy": "sasdemo",
63 "modelCreationTimeStamp": "2025-03-10T14:47:57.912505Z"
64}

Path Parameters

NameTypeRequiredDescription
modelId
string
true

The unique identifier for the model.

versionId
string
true

The unique identifier for the model version.

Responses

StatusMeaningDescription
200OK

The request succeeded. The model version was returned from the model history.

HeadersSchema
404Not Found

No model version exists at the requested path.

Schema