Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b49fd commit 938634dCopy full SHA for 938634d
enterprise/coderd/roles.go
@@ -23,6 +23,7 @@ import (
23
// @Security CoderSessionToken
24
// @Produce json
25
// @Param organization path string true "Organization ID" format(uuid)
26
+// @Param request body codersdk.PatchRoleRequest true "Upsert role request"
27
// @Tags Members
28
// @Success 200 {array} codersdk.Role
29
// @Router /organizations/{organization}/members/roles [patch]
@@ -42,7 +43,7 @@ func (api *API) patchOrgRoles(rw http.ResponseWriter, r *http.Request) {
42
43
)
44
defer commitAudit()
45
- var req codersdk.Role
46
+ var req codersdk.PatchRoleRequest
47
if !httpapi.Read(ctx, rw, r, &req) {
48
return
49
}
0 commit comments