Skip to main content
Module

x/gesso/src/Roles.ts>Roles

A TypeScript API client for Canvas LMS
Latest
class Roles
extends BaseApi
import { Roles } from "https://deno.land/x/gesso@v0.1.2/src/Roles.ts";

Constructors

new
Roles(config: Configuration)

Methods

activateRole(
account_id: string,
id: string,
body?: unknown,
): Promise<Role>
createNewRole(
account_id: string,
body?: unknown,
): Promise<Role>
deactivateRole(
account_id: string,
id: string,
body?: unknown,
): Promise<Role>
getSingleRole(
account_id: string,
id: string,
body?: unknown,
): Promise<Role>
listRoles(
account_id: string,
params?: ListRolesParams,
body?: unknown,
): Promise<Role[]>
updateRole(
account_id: string,
id: string,
body?: unknown,
): Promise<Role>