removeRoleFromOrgMember
Removes a specifc role from an organization member.
Parameters
Name | Type | Description |
---|---|---|
orgId | Identifier | The ID of the organization to give a user a role in. |
userId | Identifier | The ID of the user to give a role to. |
roleId | Identifier | The ID of the role to be given. |
Example
const { data: success } = await ClassicOrganizationsApi.removeRoleFromOrgMember({
orgId: "4244556007738484576",
userId: 45348281,
roleId: "914257001913009232",
});
Example Data
{ success: true }
Endpoint
DELETE /v1/organizations/{orgId}/users/{userId}/roles/{roleId}