Get the mapped code for a model
post/models/{publishId}/mappedCode
Returns the code to be able to run the model based on the provided data and mapping information in request.
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}
The information for scoreDefinitionId
and hints.
Request containing hints to generate mapped code using the Scoring Definition by Score Object.
Example:
{"scoreDefinitionId":"9f0c13ae-6a27-11e6-8b77-86f30ca893d3","hints":{"outputLibraryName":"PUBLIC"}}
Name | Type | Required | Description |
---|---|---|---|
scoreDefinitionId | string | true | The score definition ID that is used for generating mapped code. This property should be used only if |
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. |
version | integer | false | This media type's schema version number. This representation is version 1. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Schema | |
400 | Bad Request | The request was invalid. | Schema | |
500 | Internal Server Error | The request could not be fulfilled because of an unexpected server error. | Schema |