Import models into a model project
post/models
Imports one or more models from the project request object. The model contains project properties and a list of model links.
1{2 "name": "string",3 "start": 0,4 "limit": 0,5 "count": 0,6 "accept": "string",7 "links": [8 {9 "method": "string",10 "rel": "string",11 "uri": "string",12 "href": "string",13 "title": "string",14 "type": "string",15 "itemType": "string",16 "responseType": "string",17 "responseItemType": "string"18 }19 ],20 "version": 0,21 "items": [22 {23 "createdBy": "string",24 "modifiedBy": "string",25 "creationTimeStamp": "2019-08-24T14:15:22Z",26 "modifiedTimeStamp": "2019-08-24T14:15:22Z",27 "id": "string",28 "name": "string",29 "description": "string",30 "function": "string",31 "algorithm": "string",32 "tool": "string",33 "modeler": "string",34 "scoreCodeType": "string",35 "trainTable": "string",36 "eventProbVar": "string",37 "targetEvent": "string",38 "champion": true,39 "role": "string",40 "location": "string",41 "targetLevel": "string",42 "targetVariable": "string",43 "projectId": "string",44 "projectName": "string",45 "projectVersionId": "string",46 "projectVersionName": "string",47 "folderId": "string",48 "repositoryId": "string",49 "championStartTime": "string",50 "championEndTime": "string",51 "suggestedChampion": true,52 "retrainable": true,53 "immutable": true,54 "modelVersionName": "string",55 "dataUris": [56 "string"57 ],58 "properties": [59 {60 "name": "string",61 "value": "string",62 "type": "string"63 }64 ],65 "inputVariables": [66 {67 "createdBy": "string",68 "modifiedBy": "string",69 "creationTimeStamp": "2019-08-24T14:15:22Z",70 "modifiedTimeStamp": "2019-08-24T14:15:22Z",71 "name": "string",72 "description": "string",73 "role": "string",74 "type": "string",75 "level": "string",76 "format": "string",77 "length": 0,78 "version": 279 }80 ],81 "outputVariables": [82 {83 "createdBy": "string",84 "modifiedBy": "string",85 "creationTimeStamp": "2019-08-24T14:15:22Z",86 "modifiedTimeStamp": "2019-08-24T14:15:22Z",87 "name": "string",88 "description": "string",89 "role": "string",90 "type": "string",91 "level": "string",92 "format": "string",93 "length": 0,94 "version": 295 }96 ],97 "version": 298 }99 ]100}
A project request contains information about a project.
Name | Type | Required | Description |
---|---|---|---|
name | string | false | The name of the project. |
description | string | false | The description of the project. |
function | string | false | The model function from the project. Valid values are: classification, prediction, segmentation, and unknown |
externalProjectId | string | false | The external project ID. This is a reference to an external client project. |
versionOption | string | false | Import a model into a specific version. The options are: new, latest, or an existing version. |
modelList | array [Link] | false | A model list for the project request. |
version | integer | false | The project request representation version. The version is 2. Default: 2 |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | The models were imported. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
409 | Conflict | The request could not be completed due to a conflict with the current state of the resource. The model already exists. | Schema |