Actions

Run action

Run the specified action in a transient session. Action parameters are passed as POST data and converted to a CASValueList. A session is created, the action is executed, and the session is destroyed.

Values in the CASValueList that are CAS result tables have an attribute named "_ctb" whose value is TRUE.

NOTE: The table.addTable action is not supported by the REST API.

post/cas/actions/{actionName}

Request

  • Base URL: http://mock-cas.apifirst.unx.sas.com/cas
  • URL: http://mock-cas.apifirst.unx.sas.com/cas/cas/actions/{actionName}
  • Auth: one of:
    • HTTP basic
    • OAuth 2 (implicit, authorization URL https://site-specific-url)

Response

OK

statusinteger

Always returns 0. Use disposition.statusCode instead.

logstring

Concatenation of log entries into a single string.

changedResourcesChangedResources[]

A list of enumerated strings that represents state changes in the server that occurred while running the action. Clients can use these flags to distinguish what local resources must be refreshed (e.g. lists of caslibs) to reflect the current state of the server.

Example response

{
  "results": {
    "schema": [
      {
        "label": "Some column label",
        "type": "int"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.