Generate mapped code
post/definitions/{definitionId}/mappedCode
Generates mapped code from the score definition by forwarding the request to the score object.
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 |
---|---|---|---|
definitionId | string | true | The unique identifier for the score definition. |
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.
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 | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | No score definition exists at the requested path. | Schema |