Retrieve components in the decision based on tags

get/flows/{decisionId}/revisions/{revisionId}/decisionComponentsWithTags
Internal-Use Only

Returns a collection of decision components based on if they do or do not have certain tags.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "self",
6 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215/decisionComponentsWithTags",
7 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215/decisionComponentsWithTags",
8 "type": "application/vnd.sas.collection+json"
9 },
10 {
11 "method": "GET",
12 "rel": "up",
13 "href": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215",
14 "uri": "/decisions/flows/e2cf4209-2661-4ef1-b77f-10b91a6420e3/revisions/77cfc1c3-f050-4169-939a-941e7c664215",
15 "type": "application/vnd.sas.decision"
16 }
17 ],
18 "name": "decisionComponentsWithTags",
19 "accept": "application/vnd.sas.decision.tag.merge.component",
20 "count": 2,
21 "items": [
22 {
23 "name": "codeFile1",
24 "uri": "/decisions/codeFiles/edf7ba2a-ab5e-40ef-92bc-6e05b4204496",
25 "modifiedTimeStamp": "2022-02-22T22:22:22.222Z",
26 "parentDecisions": [
27 {
28 "name": "decision1",
29 "uri": "/decisions/flows/b94c5b85-1289-4312-aaed-9f8becb0bd14/revisions/e63f47ca-5fc5-4de8-a276-1bee61a23a0d"
30 },
31 {
32 "name": "decision2",
33 "uri": "/decisions/flows/a94c5b85-1289-4312-aaed-9f8becb0bd14/revisions/e63f47ca-5fc5-4de8-a276-1bee61a23a0d"
34 }
35 ],
36 "revisions": [
37 {
38 "majorRevision": 1,
39 "minorRevision": 2,
40 "id": "e63f47ca-5fc5-4de8-a276-1bee61a23a0d",
41 "tags": [
42 "Q1_Tax_Changes",
43 "Q1_Legal_Updates"
44 ]
45 },
46 {
47 "majorRevision": 1,
48 "minorRevision": 1,
49 "id": "c63f47ca-5fc5-4de8-a276-1bee61a23a0d",
50 "tags": [
51 "Q1_Tax_Changes"
52 ]
53 }
54 ]
55 },
56 {
57 "name": "ruleset1",
58 "uri": "/businessRules/ruleSets/30b9a282-c38c-4163-907c-594bbe87fef0",
59 "modifiedTimeStamp": "2022-02-22T22:02:22.202Z",
60 "parentDecisions": [
61 {
62 "name": "decision1",
63 "uri": "/decisions/flows/b94c5b85-1289-4312-aaed-9f8becb0bd14/revisions/e63f47ca-5fc5-4de8-a276-1bee61a23a0d"
64 },
65 {
66 "name": "decision2",
67 "uri": "/decisions/flows/a94c5b85-1289-4312-aaed-9f8becb0bd14/revisions/e63f47ca-5fc5-4de8-a276-1bee61a23a0d"
68 }
69 ],
70 "revisions": [
71 {
72 "majorRevision": 1,
73 "minorRevision": 1,
74 "id": "c63f47ca-5fc5-4de8-a276-1bee61a23a0d",
75 "tags": [
76 "Q1_Tax_Changes"
77 ]
78 }
79 ]
80 }
81 ],
82 "version": 2
83}

Path Parameters

NameTypeRequiredDescription
decisionId
string
true

The identifier for the decision.

Examples:
"094078e7-278a-4719-a704-6e5e65af29ee"
revisionId
string
true

The identifier of the revision.

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

Query Parameters

NameTypeRequiredDescription
includeSubDecisions
boolean
false

A Boolean to indicate whether to include a sub-decision's components in the search.

Default:
true
Examples:
true
negateTagSearch
boolean
false

A Boolean to indicate whether the search based on tags should be negated. This makes the search look for all components that do NOT have the specified tags.

Default:
false
Examples:
false
tags
string
true

A list of comma-separated tags for which to search. Surround each tag with double quotation marks.

Examples:
"\"tag_name1\",\"tag_name2\""

Header Parameters

NameTypeRequiredDescription
Accept-Item
string
false

Used for selecting the desired item representation.

Examples:
"application/vnd.sas.decision.tag.merge.component+json"

Responses

StatusMeaningDescription
200OKA collection of decision components was found.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema
404Not FoundNo decision revision exists at the requested path.HeadersSchema