Get the analysis code for a decision

post/flows/{decisionId}/analysisCode
Internal-Use Only

Returns the analysis code that is used to generate the rule fired or path tracking reports based on the scoring definition.

Request Samples

1

Response Samples

1{
2 "code": "loadActionSet \"simple\";\nloadActionSet \"ds2\";\n\naction simple.freq /\n casOut={name='add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_path' caslib='Public' replace=TRUE}\n table={name='add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_output' caslib='Public' vars={{name='PathID'}} };\n\naction runDs2 / program = 'data\n\"Public\".\"add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_path\"(overwrite=yes\nrename=( _charvar_=PathID _frequency_=Count) keep=(PathID Count));\n method run();\n set \"Public\".\"add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_path\";\n end;\n enddata;';\n",
3 "codeType": "application/json",
4 "outputTableName": "add_cf_Scenario_1_add_cf_2021-05-07_00-50-22_path",
5 "outputLibraryName": "Public",
6 "version": 1
7}

Path Parameters

NameTypeRequiredDescription
decisionId
string
true

The identifier for the decision.

Examples:
"094078e7-278a-4719-a704-6e5e65af29ee"

Request Body

The information for scoreExecutionId and hints.

Request containing hints to generate Analysis Code using the Scoring Execution. This represents application/vnd.sas.dcm.score.analysis.code.generation.request media type (version 1).

NameTypeRequiredDescription
scoreExecutionId
string
true

Score execution id.

analysisType
string
true

Type of analysis that needs to be done.

hints
object
false

Hints for generating analysis code.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema