Skip to content

Commit f70a4d4

Browse files
update POST roles api (#152)
1 parent fe98d62 commit f70a4d4

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

readme/terminusx-db/reference-guides/http-api.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ GET http://localhost:6363/api/roles/<role_name>
161161

162162
Return the role named `role_name`.
163163

164-
## Update Roles
164+
## Create Roles
165165

166166
```
167167
POST http://localhost:6363/api/roles
@@ -171,12 +171,27 @@ The JSON API post parameter is:
171171

172172
```jsx
173173
{ "name" : Role_Name
174-
"action" : Action_List
174+
"action" : ["instance_read_access","instance_write_access","commit_write_access"]
175175
}
176176
```
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"'
180195

181196
## Delete Role
182197

0 commit comments

Comments
 (0)