OAuthRolesApi
Method | HTTP request | Description |
---|---|---|
listOAuthRolesUsingGET | GET /api/web/v1/oauthroles | List oauth roles |
modifyUserOAuthRoleAssociationsUsingPUT | PUT /api/web/v1/useroauthrole/{userid}/oauthroles | Modify user oauth role membership |
listOAuthRolesUsingGET
List<OAuthRole> listOAuthRolesUsingGET()
List oauth roles
List all oauth roles. Caller requires the OAUTHROLES:VIEW permission.
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Successful | - |
400 | Bad Request | - |
401 | Access denied | - |
403 | Forbidden | - |
404 | Not Found | - |
409 | Conflict | - |
modifyUserOAuthRoleAssociationsUsingPUT
modifyUserOAuthRoleAssociationsUsingPUT(userid, requestBody)
Modify user oauth role membership
Modify the list of oauth roles assigned to a specified user. Caller requires the USERS:EDIT permission.
Example
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userid | String | The UUID of the user whose oauth role membership is to be modified. | |
requestBody | List<String> |
Return type
null (empty response body)
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Successful | - |
400 | Bad Request | - |
401 | Access denied | - |
403 | Forbidden | - |
404 | Not Found | - |
409 | Conflict | - |