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.
Using the ListOAuthRolesUsingGETWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
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
void ModifyUserOAuthRoleAssociationsUsingPUT (string userid, List<string> requestBody)
Modify user oauth role membership
Modify the list of oauth roles assigned to a specified user. Caller requires the USERS:EDIT permission.
Example
Using the ModifyUserOAuthRoleAssociationsUsingPUTWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
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
void (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 | - |