File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
readme/terminusx-db/reference-guides Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ GET http://localhost:6363/api/roles/<role_name>
161
161
162
162
Return the role named ` role_name ` .
163
163
164
- ## Update Roles
164
+ ## Create Roles
165
165
166
166
```
167
167
POST http://localhost:6363/api/roles
@@ -171,12 +171,27 @@ The JSON API post parameter is:
171
171
172
172
``` jsx
173
173
{ " name" : Role_Name
174
- " action" : Action_List
174
+ " action" : [ " instance_read_access " , " instance_write_access " , " commit_write_access " ]
175
175
}
176
176
```
177
-
178
- This endpoint will update the roles in the database with the
179
- associated list of actions.
177
+ Create a new role with the listed actions. Actions may be any of:
178
+ * '"create_database"'
179
+ * '"delete_database"'
180
+ * '"class_frame"'
181
+ * '"clone"'
182
+ * '"fetch"'
183
+ * '"push"'
184
+ * '"branch"'
185
+ * '"rebase"'
186
+ * '"instance_read_access"'
187
+ * '"instance_write_access"'
188
+ * '"schema_read_access"'
189
+ * '"schema_write_access"'
190
+ * '"meta_read_access"'
191
+ * '"meta_write_access"'
192
+ * '"commit_read_access"'
193
+ * '"commit_write_access"'
194
+ * '"manage_capabilities"'
180
195
181
196
## Delete Role
182
197
You can’t perform that action at this time.
0 commit comments