Create a new score execution

post/executions
Internal-Use Only

Creates a new score execution based on the representation in the request body.

Request Samples

1

Response Samples

1{
2 "codeFileUri": "/files/files/6d36a764-6a46-401a-bb89-bc24ac864374",
3 "createdBy": "sasuser",
4 "creationTimeStamp": "2022-01-05T00:31:45.864991Z",
5 "id": "c56894cc-130d-4cc5-a15a-d6dedcc5a2b5",
6 "links": [
7 {
8 "method": "GET",
9 "rel": "up",
10 "href": "/scoreExecution/executions",
11 "uri": "/scoreExecution/executions",
12 "type": "application/vnd.sas.collection"
13 },
14 {
15 "method": "GET",
16 "rel": "self",
17 "href": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5",
18 "uri": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5",
19 "type": "application/vnd.sas.score.execution"
20 },
21 {
22 "method": "GET",
23 "rel": "alternate",
24 "href": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5",
25 "uri": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5",
26 "type": "application/vnd.sas.summary"
27 },
28 {
29 "method": "DELETE",
30 "rel": "delete",
31 "href": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5",
32 "uri": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5"
33 },
34 {
35 "method": "GET",
36 "rel": "analyses",
37 "href": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5/analyses",
38 "uri": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5/analyses"
39 },
40 {
41 "method": "GET",
42 "rel": "state",
43 "href": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5/state",
44 "uri": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5/state",
45 "type": "text/plain"
46 },
47 {
48 "method": "POST",
49 "rel": "analysisCode",
50 "href": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5/analysisCode",
51 "uri": "/scoreExecution/executions/c56894cc-130d-4cc5-a15a-d6dedcc5a2b5/analysisCode",
52 "type": "application/vnd.sas.score.analysis.code.generation.request",
53 "responseType": "application/vnd.sas.score.analysis.code"
54 }
55 ],
56 "modifiedBy": "sasuser",
57 "modifiedTimeStamp": "2022-01-05T00:31:45.864991Z",
58 "outputTable": {
59 "libraryName": "Public",
60 "serverName": "cas-shared-default"
61 },
62 "results": {
63 "jobRequestId": "8dc7f798-34d9-49aa-a23e-f5cff8daf96b",
64 "mappedCodeJobId": "c167600d-7a9f-444c-b7c4-9de1de7d3338"
65 },
66 "scoreExecutionRequest": {
67 "version": 1,
68 "name": "My Score Request",
69 "hints": {
70 "asyncMappedCode": "true",
71 "inputLibraryName": "CASUSER(edmdev)",
72 "inputTableName": "Scenario_8fc3a739_55a8_4057_9e0d_b5148dafa32a",
73 "outputLibraryName": "PUBLIC"
74 },
75 "type": "scoreDefinition",
76 "scoreDefinitionId": "8fc3a739-55a8-4057-9e0d-b5148dafa32a"
77 },
78 "state": "running",
79 "version": 1
80}

Request Body

The representation of a score execution request.

Contains request details about how to generate score. This represents application/vnd.sas.score.execution.request media type (version 1).

NameTypeRequiredDescription
type
string<enumeration>
false

Score execution request can be either scoreDefinition or mappedCode. Default value is scoreDefinition.

Allowed values:
scoreDefinitionmappedCode
Default:
scoreDefinition
name
string
true

The descriptive name for the request. Which will be shown when showing executions.

description
string
false

The description of the request.

hints
object
false

Hints used to execute an object for score.

jobDefinition
Job Definition
false

The job definition.

jobDefinitionId
string
false

Job definition id which is used to score. Either this or the jobDefinition should be used.

scoreDefinition
Score Definition
false

A definition containing details about Input Data, Score Object and Mapping. This represents application/vnd.sas.score.definition media type (version 1).

scoreDefinitionId
string
true

Score definition id which is used to score an object. Valid only when type is scoreDefinition. Either this or the scoreDefinition should be part of the request. Should not use both of them. Only valid when the type is scoreDefinition.

overrideScoreDefinition
Override Score Definition
false

Overrides the details of the existing Score definition. This doesn't represent any top-level media type.

mappedCode
string
false

Inline mapped code. Valid only when type is mappedCode. Either this or mappedCodeUri should be used.

mappedCodeUri
string
true

Uri containing mapped code. Valid only when type is mappedCode. Either this or mappedCode should be used.

outputTable
Output Table
true

Output generated by score execution or analysis. This doesn't represent any top-level media type.

Responses

StatusMeaningDescription
201CreatedA score execution was created.HeadersSchema
400Bad RequestThe request was invalid.Schema