Generate mapped model score code

post/models/{modelId}/mappedCode
Internal-Use Only

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.

Request Samples

1

Response Samples

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}

Path Parameters

NameTypeRequiredDescription
modelId
string
true

The ID of a model in the common model repository.

Request Body

Information needed to request score code generation.

Request containing hints to generate mapped code using the Scoring Definition by Score Object.

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
201CreatedThe request succeeded.Schema
400Bad RequestThe request was invalid.Schema
404Not FoundNo model exists at the requested path.Schema