v1

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-27192307552.2 KB
users

Update User Resource Membership

Updates resource memberships of a user.

Args: user_name_or_id: Name or ID of the user. resource_type: Type of the resource for which to update the membership. resource_id: ID of the resource for which to update the membership. actions: List of actions that the user should be able to perform on the resource. If the user currently has permissions to perform actions which are not passed in this list, the permissions will be removed. auth_context: Authentication context.

Raises: ValueError: If a user tries to update their own membership. KeyError: If no resource with the given type and ID exists.

post/api/v1/users/{user_name_or_id}/resource_membership

Path parameters

string required
OR
string uuid required

Query parameters

resource_typestring required
resource_idstring uuid required

Request body

string[] required

Response

Successful Response

{"stackTrail":"paths:/api/v1/users/{user_name_or_id}/resource_membership:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}