MCPcopy
hub / github.com/logto-io/logto / deleteRole

Function deleteRole

packages/integration-tests/src/api/role.ts:54–54  ·  view source on GitHub ↗
(roleId: string)

Source from the content-addressed store, hash-verified

52 .json<Role>();
53
54export const deleteRole = async (roleId: string) => authedAdminApi.delete(`roles/${roleId}`);
55
56export const getRoleScopes = async (roleId: string) =>
57 authedAdminApi.get(`roles/${roleId}/scopes`).json<Scope[]>();

Calls 1

deleteMethod · 0.45

Tested by 2

createRuleMatrixFunction · 0.68