Add a global caslib

put/cas/caslibs
Internal-Use Only

Add a global caslib to the controller using the table.addCaslib action. Parameters must be submitted as JSON in the request body using the parameters for the addCaslib CAS action. Parameter processing is handled by the action, so errors may be returned as action results (and HTTP 200 result code) rather than vnd.sas.cas.direct.error.response.

Request Samples

1

Response Samples

1{
2 "status": 0,
3 "log": "Some log entry that is returned",
4 "results": {
5 "value": {
6 "_ctb": true,
7 "label": "Cas Table Label",
8 "title": "Cas Table Title",
9 "name": "Cas Table Name",
10 "schema": {
11 "value": {
12 "name": "Some column name",
13 "label": "Some column label",
14 "format": "Some format",
15 "type": "int",
16 "width": 7,
17 "attributes": {
18 "Some Attributes": null
19 }
20 }
21 }
22 },
23 "logEntries": {
24 "value": {
25 "level": "all",
26 "message": "Logging entry"
27 }
28 }
29 },
30 "disposition": {
31 "value": {
32 "severity": "Normal",
33 "reason": "OK",
34 "statusCode": 0,
35 "formattedStatus": "null",
36 "debugInfo": "null",
37 "changedResources": {
38 "value": {
39 "$ref": "#/components/examples/CASResource"
40 }
41 }
42 },
43 "metrics": {
44 "value": {
45 "$ref": "#/components/examples/ActionMetrics"
46 }
47 }
48 }
49}

Responses

StatusMeaningDescription
200OKOKSchema