Get a model with a list of versions
get/models/{modelId}/versions
Returns a list of model versions with the model itself for the specified model ID.
1{2 "version": 2,3 "count": 13,4 "start": 0,5 "limit": 13,6 "name": "versions",7 "items": [8 {9 "creationTimeStamp": "2023-08-07T14:40:58.979000Z",10 "createdBy": "sasdemo",11 "modifiedTimeStamp": "2023-08-07T16:40:08.568000Z",12 "modifiedBy": "sasdemo",13 "id": "01508e8d-a6e2-40b9-b955-58f48e1b1604",14 "name": "QS_Reg1",15 "description": "Logistic Regression",16 "role": "champion",17 "scoreCodeType": "dataStep",18 "algorithm": "logisticreg",19 "function": "classification",20 "modeler": "sasdemo",21 "modelType": "dataStep",22 "trainTable": "/dataTables/dataSources/cas/cas-shared-default/Public/tables/HMEQ_TRAIN",23 "eventProbVar": "EM_EVENTPROBABILITY",24 "targetVariable": "BAD",25 "targetEvent": "1",26 "targetLevel": "binary",27 "tool": "Model Studio",28 "toolVersion": 8.3,29 "publishTimeStamp": 1691426404971,30 "externalModelId": "407fbf89-7085-49c3-811a-7f5d912e4676",31 "indirectFolderId": "f26f68e5-09ff-4880-8e3e-5c84c31a67b1",32 "repositoryId": "8153f0d3-8b87-4415-b66d-537c70e3600b",33 "projectId": "b38d3663-0187-4690-84f9-56a973e0e6b1",34 "projectVersionId": "d8c79ea9-5ed8-46a0-b1d7-d9cfe0b20188",35 "immutable": false,36 "folderRef": "/folders/folders/a354fb9f-6dc9-4844-93ae-30aa9dd7e10c",37 "location": "/Model Repositories/Public/publish delete/Version 1",38 "modelVersionName": "12.0",39 "projectName": "publish delete",40 "projectVersionName": "Version 1",41 "projectVersionNum": 1,42 "files": [43 {44 "creationTimeStamp": "2023-08-07T14:40:59.519645Z",45 "createdBy": "anonymous",46 "modifiedTimeStamp": "2023-08-07T14:40:59.519646Z",47 "modifiedBy": "anonymous",48 "version": 2,49 "id": "37cd93c8-b7a8-4c75-b920-f5d27486fac9",50 "name": "ModelProperties.json",51 "fileUri": "/files/files/0138bd91-f905-4100-836d-32a4090ec45c",52 "modelId": "01508e8d-a6e2-40b9-b955-58f48e1b1604",53 "links": [54 {55 "method": "GET",56 "rel": "UP",57 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604",58 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604",59 "itemType": "application/vnd.sas.models.model.content"60 },61 {62 "method": "GET",63 "rel": "self",64 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",65 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",66 "type": "application/vnd.sas.models.model.content"67 },68 {69 "method": "GET",70 "rel": "content",71 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9/content",72 "type": "application/octet-stream"73 },74 {75 "method": "POST",76 "rel": "create",77 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",78 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",79 "type": "multipart/form-data"80 },81 {82 "method": "PUT",83 "rel": "update",84 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",85 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",86 "type": "application/vnd.sas.models.model.content"87 },88 {89 "method": "PUT",90 "rel": "updateContentMultipart",91 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",92 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",93 "type": "application/vnd.sas.models.model.content"94 },95 {96 "method": "DELETE",97 "rel": "delete",98 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9",99 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents/37cd93c8-b7a8-4c75-b920-f5d27486fac9"100 }101 ]102 }103 ],104 "inputVariables": [105 {106 "creationTimeStamp": "2023-08-07T14:41:01.946216Z",107 "createdBy": "anonymous",108 "modifiedTimeStamp": "2023-08-07T14:43:36.218739Z",109 "name": "CLNO",110 "description": "",111 "role": "input",112 "type": "decimal",113 "level": "interval",114 "format": "",115 "aggregation": "",116 "length": 8,117 "id": "3ddb478f-f900-4c9f-bfa9-941d89e15e42",118 "holderId": "01508e8d-a6e2-40b9-b955-58f48e1b1604",119 "links": [120 {121 "method": "GET",122 "rel": "up",123 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3ddb478f-f900-4c9f-bfa9-941d89e15e42",124 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables",125 "type": "application/vnd.sas.collection"126 },127 {128 "method": "GET",129 "rel": "self",130 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3ddb478f-f900-4c9f-bfa9-941d89e15e42",131 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3ddb478f-f900-4c9f-bfa9-941d89e15e42",132 "type": "application/vnd.sas.models.model.variable"133 },134 {135 "method": "PUT",136 "rel": "update",137 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3ddb478f-f900-4c9f-bfa9-941d89e15e42",138 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3ddb478f-f900-4c9f-bfa9-941d89e15e42",139 "type": "application/vnd.sas.models.model.variable"140 },141 {142 "method": "DELETE",143 "rel": "delete",144 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3ddb478f-f900-4c9f-bfa9-941d89e15e42",145 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3ddb478f-f900-4c9f-bfa9-941d89e15e42",146 "type": "application/vnd.sas.models.model.variable"147 }148 ]149 }150 ],151 "outputVariables": [152 {153 "creationTimeStamp": "2023-08-07T14:41:02.431147Z",154 "createdBy": "anonymous",155 "modifiedTimeStamp": "2023-08-07T14:43:37.427800Z",156 "name": "EM_CLASSIFICATION",157 "description": "",158 "role": "output",159 "type": "string",160 "level": "",161 "format": "",162 "aggregation": "",163 "length": 1,164 "id": "3c42ee3f-fdf7-46fa-a1b1-9b59a0080401",165 "holderId": "01508e8d-a6e2-40b9-b955-58f48e1b1604",166 "links": [167 {168 "method": "GET",169 "rel": "up",170 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3c42ee3f-fdf7-46fa-a1b1-9b59a0080401",171 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables",172 "type": "application/vnd.sas.collection"173 },174 {175 "method": "GET",176 "rel": "self",177 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3c42ee3f-fdf7-46fa-a1b1-9b59a0080401",178 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3c42ee3f-fdf7-46fa-a1b1-9b59a0080401",179 "type": "application/vnd.sas.models.model.variable"180 },181 {182 "method": "PUT",183 "rel": "update",184 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3c42ee3f-fdf7-46fa-a1b1-9b59a0080401",185 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3c42ee3f-fdf7-46fa-a1b1-9b59a0080401",186 "type": "application/vnd.sas.models.model.variable"187 },188 {189 "method": "DELETE",190 "rel": "delete",191 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3c42ee3f-fdf7-46fa-a1b1-9b59a0080401",192 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables/3c42ee3f-fdf7-46fa-a1b1-9b59a0080401",193 "type": "application/vnd.sas.models.model.variable"194 }195 ]196 }197 ],198 "modelVersions": [199 {200 "creationTimeStamp": "2023-08-07T14:43:41.850000Z",201 "createdBy": "sasdemo",202 "modifiedTimeStamp": "2023-08-07T14:43:41.850000Z",203 "modifiedBy": "sasdemo",204 "id": "e660c5f8-6ca4-4aae-a3bb-c78042708a92",205 "name": "QS_Reg1",206 "description": "Logistic Regression",207 "role": "champion",208 "scoreCodeType": "dataStep",209 "algorithm": "logisticreg",210 "function": "classification",211 "modeler": "sasdemo",212 "modelType": "dataStep",213 "trainTable": "/dataTables/dataSources/cas~fs~cas-shared-default~fs~Public/tables/HMEQ_TRAIN",214 "eventProbVar": "EM_EVENTPROBABILITY",215 "targetVariable": "BAD",216 "targetEvent": "1",217 "targetLevel": "BINARY",218 "tool": "Model Studio",219 "toolVersion": 8.3,220 "externalModelId": "407fbf89-7085-49c3-811a-7f5d912e4676",221 "immutable": true,222 "folderRef": "/folders/folders/a354fb9f-6dc9-4844-93ae-30aa9dd7e10c",223 "modelVersionName": "1.0",224 "inputVariables": null,225 "outputVariables": null,226 "modelVersions": null,227 "modelLocks": null,228 "globalTags": null,229 "links": [230 {231 "method": "GET",232 "rel": "up",233 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions",234 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions",235 "type": "application/vnd.sas.collection",236 "itemType": "application/vnd.sas.models.model.version"237 },238 {239 "method": "GET",240 "rel": "self",241 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions/e660c5f8-6ca4-4aae-a3bb-c78042708a92",242 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions/e660c5f8-6ca4-4aae-a3bb-c78042708a92",243 "type": "application/vnd.sas.models.model.version"244 },245 {246 "method": "GET",247 "rel": "contents",248 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions/e660c5f8-6ca4-4aae-a3bb-c78042708a92/contents",249 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions/e660c5f8-6ca4-4aae-a3bb-c78042708a92/contents",250 "type": "application/vnd.sas.collection",251 "itemType": "application/vnd.sas.models.model.content"252 }253 ],254 "version": 0,255 "modelLastModifiedBy": "sasdemo",256 "modelLastModifiedTimeStamp": "2023-08-07T14:43:41.681738Z",257 "modelCreatedBy": "sasdemo",258 "modelCreationTimeStamp": "2023-08-07T14:40:58.979328Z"259 }260 ],261 "modelLocks": null,262 "publishedModels": {263 "modelId": "01508e8d-a6e2-40b9-b955-58f48e1b1604",264 "projectId": "b38d3663-0187-4690-84f9-56a973e0e6b1",265 "publishName": "QS_Reg1_pub1",266 "publishResultUrl": "QS_Reg1_pub1",267 "destinationName": "maslocal",268 "destinationType": "microAnalyticService",269 "state": "success",270 "masUrl": "/microanalyticScore/modules/qs_reg1_pub1"271 },272 "globalTags": null,273 "links": [274 {275 "method": "GET",276 "rel": "up",277 "href": "/modelRepository/models",278 "uri": "/modelRepository/models",279 "type": "application/vnd.sas.models.model"280 },281 {282 "method": "GET",283 "rel": "self",284 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604",285 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604",286 "type": "application/vnd.sas.models.model"287 },288 {289 "method": "PUT",290 "rel": "update",291 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604",292 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604",293 "type": "application/vnd.sas.models.model",294 "responseItemType": "application/vnd.sas.models.model"295 },296 {297 "method": "DELETE",298 "rel": "delete",299 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604",300 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604"301 },302 {303 "method": "GET",304 "rel": "scoreCode",305 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/code",306 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/code",307 "type": "text/plain"308 },309 {310 "method": "GET",311 "rel": "contents",312 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents",313 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/contents",314 "type": "application/vnd.sas.collection",315 "itemType": "application/vnd.sas.models.model.content"316 },317 {318 "method": "GET",319 "rel": "modelVersions",320 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions",321 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions",322 "type": "application/vnd.sas.collection",323 "responseItemType": "application/vnd.sas.models.model.version"324 },325 {326 "method": "POST",327 "rel": "addModelVersion",328 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions",329 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/modelVersions",330 "type": "application/vnd.sas.models.model.version"331 },332 {333 "method": "GET",334 "rel": "variables",335 "href": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables",336 "uri": "/modelRepository/models/01508e8d-a6e2-40b9-b955-58f48e1b1604/variables",337 "type": "application/vnd.sas.collection",338 "itemType": "application/vnd.sas.models.model.variable"339 }340 ],341 "version": 0,342 "modelLastModifiedTimeStamp": "0001-01-01T00:00:00Z",343 "modelCreationTimeStamp": "0001-01-01T00:00:00Z"344 }345 ]346}