Get analysis code for decision revision

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

Retrieves the analysis code that is required for the collection rule fired or path tracking information for the decision revision.

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"
revisionId
string
true

The identifier for the revision.

Examples:
"cd942f3c-60a0-4b16-9184-4cb8921fb0eb"

Request Body

Analysis request information, which includes the type and name of the analysis that is being performed.

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