Select a model content from your local machine to import a model.
Import a model through an octet stream
Imports a model through input stream. The folder ID or project version ID is required. If the model should be imported into a folder, use the folder ID. Otherwise, use project version ID.
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 "targetVariable": "string",42 "projectId": "string",43 "projectName": "string",44 "projectVersionId": "string",45 "projectVersionName": "string",46 "folderId": "string",47 "repositoryId": "string",48 "championStartTime": "string",49 "championEndTime": "string",50 "suggestedChampion": true,51 "retrainable": true,52 "immutable": true,53 "modelVersionName": "string",54 "dataUris": [55 {56 "name": "string",57 "uri": "string",58 "uriType": "string",59 "mediaType": "string",60 "contentType": "string"61 }62 ],63 "properties": [64 {65 "name": "string",66 "value": "string",67 "type": "string"68 }69 ],70 "inputVariables": [71 {72 "createdBy": "string",73 "modifiedBy": "string",74 "creationTimeStamp": "2019-08-24T14:15:22Z",75 "modifiedTimeStamp": "2019-08-24T14:15:22Z",76 "name": "string",77 "description": "string",78 "role": "string",79 "type": "string",80 "level": "string",81 "format": "string",82 "length": 0,83 "version": 284 }85 ],86 "outputVariables": [87 {88 "createdBy": "string",89 "modifiedBy": "string",90 "creationTimeStamp": "2019-08-24T14:15:22Z",91 "modifiedTimeStamp": "2019-08-24T14:15:22Z",92 "name": "string",93 "description": "string",94 "role": "string",95 "type": "string",96 "level": "string",97 "format": "string",98 "length": 0,99 "version": 2100 }101 ],102 "version": 2103 }104 ]105}| Name | Type | Required | Description |
|---|---|---|---|
description | string<sort-criteria> | false | The description of the model. |
folderId | string<sort-criteria> | false | You must specify a folder ID or project version ID. |
function | string<sort-criteria> | false | The function of the model. |
projectName | string<sort-criteria> | false | The model is imported into this project. |
projectVersionId | string<sort-criteria> | false | You must specify a folder ID or project version ID. |
versionOption | string<sort-criteria> | false | This parameter indicates to create a new version, use the latest version, or use an existing version to import the model into. Valid values are NEW, LATEST, or a number. |
name | string | true | The model name. |
type | string<sort-criteria> | true | The value for type can be SPK, ZIP, or CAS. Default: SPK |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 201 | Created | The model was 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 |