Get the mapped code for a model

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

Returns the code to be able to run the model based on the provided data and mapping information in request.

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
publishId
string
true

The ID of the published model.

Request Body

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"}}
NameTypeRequiredDescription
scoreDefinitionId
string
true

The score definition ID that is used for generating mapped code. This property should be used only if scoreDefinition is not used.

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.

Responses

StatusMeaningDescription
200OKThe request succeeded.Schema
400Bad RequestThe request was invalid.Schema
500Internal Server ErrorThe request could not be fulfilled because of an unexpected server error.Schema