Get a list of all decisions

get/flows
Internal-Use Only

Returns a resource collection of all decisions.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/decisions/flows",
7 "uri": "/decisions/flows",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.decision"
10 },
11 {
12 "method": "GET",
13 "rel": "self",
14 "href": "/decisions/flows?sortBy=name&start=2&limit=1",
15 "uri": "/decisions/flows?sortBy=name&start=2&limit=1",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.summary"
18 },
19 {
20 "method": "GET",
21 "rel": "first",
22 "href": "/decisions/flows?sortBy=name&start=0&limit=1",
23 "uri": "/decisions/flows?sortBy=name&start=0&limit=1",
24 "type": "application/vnd.sas.collection",
25 "itemType": "application/vnd.sas.summary"
26 },
27 {
28 "method": "GET",
29 "rel": "prev",
30 "href": "/decisions/flows?sortBy=name&start=1&limit=1",
31 "uri": "/decisions/flows?sortBy=name&start=1&limit=1",
32 "type": "application/vnd.sas.collection",
33 "itemType": "application/vnd.sas.summary"
34 },
35 {
36 "method": "GET",
37 "rel": "next",
38 "href": "/decisions/flows?sortBy=name&start=3&limit=1",
39 "uri": "/decisions/flows?sortBy=name&start=3&limit=1",
40 "type": "application/vnd.sas.collection",
41 "itemType": "application/vnd.sas.summary"
42 },
43 {
44 "method": "POST",
45 "rel": "createDecision",
46 "href": "/decisions/flows",
47 "uri": "/decisions/flows",
48 "type": "application/vnd.sas.decision",
49 "responseType": "application/vnd.sas.decision"
50 }
51 ],
52 "name": "decisions",
53 "accept": "application/vnd.sas.summary",
54 "start": 2,
55 "count": 5,
56 "items": [
57 {
58 "creationTimeStamp": "2021-05-07T16:06:56.319Z",
59 "modifiedTimeStamp": "2021-05-07T16:06:56.319Z",
60 "createdBy": "sasdemo",
61 "modifiedBy": "sasdemo",
62 "id": "e2cf4209-2661-4ef1-b77f-10b91a6420e3",
63 "type": "decision",
64 "name": "add_dec",
65 "links": [
66 {
67 "method": "GET",
68 "rel": "self",
69 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3",
70 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3",
71 "type": "application/vnd.sas.decision"
72 },
73 {
74 "method": "GET",
75 "rel": "alternate",
76 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3",
77 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3",
78 "type": "application/vnd.sas.summary"
79 },
80 {
81 "method": "DELETE",
82 "rel": "delete",
83 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3",
84 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3",
85 "type": "application/vnd.sas.summary"
86 }
87 ],
88 "version": 2
89 }
90 ],
91 "limit": 1,
92 "version": 2
93}

Query Parameters

NameTypeRequiredDescription
parentFolderUri
string</folders/folders/{parentFolderId}>
false

The folder where the target decisions are located.

Examples:
"/folders/folders/@public"
filter
string<filter-criteria>
false

The criteria for filtering the decision flows. See Filtering in REST APIs.

Examples:
"gt(modifiedTimeStamp, '2021-05-03T15:38:45.654Z')"
limit
integer
false

The maximum number of items to return in this page of results. The actual number of returned items might be less if the collection has been exhausted.

Default:
10
Examples:
500
sortBy
string<sort-criteria>
false

The criteria for sorting the decision flows. See Sorting in REST APIs.

Examples:
"modifiedTimeStamp:descending"
start
integer
false

The starting index of the first item in a page. The index is 0-based.

Default:
0
Examples:
100
stepObjectUri
string
false

If provided, only decisions that contain a step object matching this URI are returned. The supported step types to search for are model steps, rule set steps, or custom object steps. For models and rule sets, the URI should include only the object's ID (no revision). For custom objects, any decisions with a custom object step referencing an object whose URI starts with the provided value is returned.

Examples:
"/modelrepositoiry/models/7396c9ee-1860-477c-ac9f-0b91824c7d25""/businessRules/ruleSets/321d4afb-daf3-49fe-a3b5-8a8deefe29e2""/decisions/flows/ef613bb5-d855-4227-97ac-9e9bfefe3e4a""/decisions/codeFiles/d5704165-7d0c-4c36-8444-9ae3e2357a3b"

Header Parameters

NameTypeRequiredDescription
Accept-Item
string<media-type>
false

Used for selecting the desired item representation.

Allowed values:
application/vnd.sas.decision+jsonapplication/vnd.sas.summary+jsonapplication/vnd.sas.dcm.summary+json
Default:
application/vnd.sas.summary+json
Examples:
"application/vnd.sas.decision+json"

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema
406Not AcceptableThe request was not acceptable. An invalid media type was specified for the `Accept-Item` header value.HeadersSchema