Skip to main content

OAuthRolesApi

MethodHTTP requestDescription
list_o_auth_roles_using_getGET /api/web/v1/oauthrolesList oauth roles
modify_user_o_auth_role_associations_using_putPUT /api/web/v1/useroauthrole/{userid}/oauthrolesModify user oauth role membership

list_o_auth_roles_using_get

List[OAuthRole] list_o_auth_roles_using_get()

List oauth roles

List all oauth roles. Caller requires the OAUTHROLES:VIEW permission.

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

This endpoint does not need any parameter.

Return type

List[OAuthRole]

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

modify_user_o_auth_role_associations_using_put

modify_user_o_auth_role_associations_using_put(userid, request_body)

Modify user oauth role membership

Modify the list of oauth roles assigned to a specified user. Caller requires the USERS:EDIT permission.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
useridstrThe UUID of the user whose oauth role membership is to be modified.
request_bodyList[str]

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-