Generate mapped code

post/definitions/{definitionId}/mappedCode
Internal-Use Only

Generates mapped code from the score definition by forwarding the request to the score object.

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

The unique identifier for the score definition.

Request Body

Representation of the score code generation request containing the score definition ID and hints.

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
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundNo score definition exists at the requested path.Schema