Generate mapped model score code
post/models/{modelId}/mappedCode
Generates mapped score code for a model that is wrapped for use with the Score Execution service. The model is managed in the common model repository by the Model Repository API. For more information, see the Model Repository API.
1{2 "code": "/* DS2 code of an object, which generates an XYZ output table */",3 "codeType": "text/vnd.sas.source.ds2",4 "outputTableName": "XYZ",5 "outputLibraryName": "HPS"6}
Name | Type | Required | Description |
---|---|---|---|
modelId | string | true | The ID of a model in the common model repository. |
Information needed to request score code generation.
Request containing hints to generate mapped code using the Scoring Definition by Score Object.
Name | Type | Required | Description |
---|---|---|---|
scoreDefinitionId | string | true | The score definition ID that is used for generating mapped code. |
hints | object | false | Hints for generating mapped code. The mapped code request is forwarded to the score object of the score definition. The score object should understand these hints. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | The request succeeded. | Schema | |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | No model exists at the requested path. | Schema |