Get Current Actions
Gets all Security Actions for current context.
Resource Information
This service uses the tomcat application on port 8080 by default.
The context for this API is /crafter-social
, please prefix the API URLs with this context.
HTTP Verb
|
GET
|
URL
|
/api/3/system/actions |
Response Formats
|
JSON |
Parameters
Name
|
Type
|
Required
|
Description
|
---|---|---|---|
context
|
String
|
✓
|
The ID of the Social Context
|
Example
Request
GET .../api/3/system/actions?context=f5b143c2-f1c0-4a10-b56e-f485f00d3fe9
Response
Status 200 OK
1[
2 {
3 "actionName": "ugc.update",
4 "roles": [
5 "SOCIAL_SUPERADMIN",
6 "OWNER",
7 "SOCIAL_ADMIN",
8 "SOCIAL_MODERATOR"
9 ],
10 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
11 "_id": "59663b4be61296e1be35358b"
12 },
13 {
14 "actionName": "ugc.moderate",
15 "roles": [
16 "SOCIAL_SUPERADMIN",
17 "SOCIAL_ADMIN",
18 "SOCIAL_MODERATOR"
19 ],
20 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
21 "_id": "59663b4be61296e1be35358c"
22 },
23 {
24 "actionName": "ugc.unflag",
25 "roles": [
26 "SOCIAL_SUPERADMIN",
27 "SOCIAL_ADMIN",
28 "SOCIAL_MODERATOR"
29 ],
30 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
31 "_id": "59663b4be61296e1be35358d"
32 },
33 {
34 "actionName": "ugc.flag",
35 "roles": [
36 "SOCIAL_SUPERADMIN",
37 "SOCIAL_ADMIN",
38 "SOCIAL_MODERATOR",
39 "SOCIAL_USER"
40 ],
41 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
42 "_id": "59663b4be61296e1be35358e"
43 },
44 {
45 "actionName": "ugc.create",
46 "roles": [
47 "SOCIAL_SUPERADMIN",
48 "SOCIAL_ADMIN",
49 "SOCIAL_MODERATOR",
50 "SOCIAL_USER"
51 ],
52 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
53 "_id": "59663b4be61296e1be35358f"
54 },
55 {
56 "actionName": "ugc.delete",
57 "roles": [
58 "SOCIAL_SUPERADMIN",
59 "OWNER",
60 "SOCIAL_ADMIN",
61 "SOCIAL_MODERATOR"
62 ],
63 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
64 "_id": "59663b4be61296e1be353590"
65 },
66 {
67 "actionName": "ugc.read",
68 "roles": [
69 "ANONYMOUS",
70 "SOCIAL_SUPERADMIN",
71 "SOCIAL_ADMIN",
72 "SOCIAL_MODERATOR",
73 "SOCIAL_USER"
74 ],
75 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
76 "_id": "59663b4be61296e1be353591"
77 },
78 {
79 "actionName": "system.securityActions.read",
80 "roles": [
81 "SOCIAL_SUPERADMIN",
82 "SOCIAL_ADMIN"
83 ],
84 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
85 "_id": "59663b4be61296e1be353592"
86 },
87 {
88 "actionName": "system.securityActions.update",
89 "roles": [
90 "SOCIAL_SUPERADMIN",
91 "SOCIAL_ADMIN"
92 ],
93 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
94 "_id": "59663b4be61296e1be353593"
95 },
96 {
97 "actionName": "system.socialctx.all",
98 "roles": [
99 "SOCIAL_SUPERADMIN",
100 "SOCIAL_ADMIN"
101 ],
102 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
103 "_id": "59663b4be61296e1be353594"
104 },
105 {
106 "actionName": "system.socialctx.create",
107 "roles": [
108 "SOCIAL_SUPERADMIN"
109 ],
110 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
111 "_id": "59663b4be61296e1be353595"
112 },
113 {
114 "actionName": "system.socialctx.addProfile",
115 "roles": [
116 "SOCIAL_SUPERADMIN",
117 "SOCIAL_ADMIN"
118 ],
119 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
120 "_id": "59663b4be61296e1be353596"
121 },
122 {
123 "actionName": "system.socialctx.removeProfile",
124 "roles": [
125 "SOCIAL_SUPERADMIN",
126 "SOCIAL_ADMIN"
127 ],
128 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
129 "_id": "59663b4be61296e1be353597"
130 },
131 {
132 "actionName": "system.notification.changeTemplate",
133 "roles": [
134 "SOCIAL_SUPERADMIN",
135 "SOCIAL_ADMIN"
136 ],
137 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
138 "_id": "59663b4be61296e1be3535ab"
139 },
140 {
141 "actionName": "ugc.voting",
142 "roles": [
143 "SOCIAL_SUPERADMIN",
144 "SOCIAL_ADMIN",
145 "SOCIAL_MODERATOR",
146 "SOCIAL_USER"
147 ],
148 "contextId": "f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
149 "_id": "59663b4be61296e1be3535ca"
150 }
151]
Responses
Status
|
Location
|
Response Body
|
---|---|---|
200
|
See example above.
|
|
401
|
{ "message" : "User must be logged in" } |
|
403
|
{ "message" : "Current subject does not have
permission to execute global action ..." }
|
|
500
|
{ "message" : "Internal server error" } |