D2Lbrightspace

Learn how to use D2Lbrightspace with Composio

Overview

SLUG

D2LBRIGHTSPACE

Description

D2L Brightspace provides APIs for building custom integrations and add-ons for the D2L Brightspace platform.

Authentication Details

client_id
stringRequired
client_secret
stringRequired
domain
stringRequired
version
stringDefaults to 1.75Required
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to quizzing:quizzes:delete,quizzing:quizzes:read,quizzing:quizzes:create

Tools

SLUG: D2LBRIGHTSPACE_GET_CURRENT_USER

Retrieves the current user context's user information from d2l brightspace. requires one of these oauth2 scopes: - users:profile:read - users:own profile:read available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_COPY_ROLE

Creates a new role copied from an existing role in d2l brightspace. notes: - the new role will not have any capabilities upon the old role from which it was created - some capabilities will be copied for the new role (e.g., if old role users could impersonate other old role users, new role users will be able to impersonate other new role users) - additional capabilities must be manually created after copying requires oauth2 scope: - role:detail:create available in api versions unstable (lms v10.4.10+)

Action Parameters

deep_copy_role_id
integerRequired
role_data
objectRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_CREATE_A_COURSE_OFFERING

Creates a new course offering in d2l brightspace. notes: - course code limitations: max 50 chars, no special chars: \ : * ? " < > | ' # , % & - path: leave empty if path enforcement is enabled - semesterid: provide null if not using the semester element - canselfregister: required for api v1.28+, not supported before v1.28 requires oauth2 scope: - orgunits:course:create available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

course_data
objectRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_CREATE_A_COURSE_TEMPLATE

Creates a new course template in d2l brightspace. notes: - course template code limitations: max 50 chars, no special chars: \ : * ? " < > | ' # , % & - path: leave empty if path enforcement is enabled requires oauth2 scope: - orgunits:coursetemplate:create available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

course_template_data
objectRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_CREATE_GRADE_OBJECT

Creates a new grade object for a particular org unit. the grade object can be one of four types: 1. numeric: for numeric grades with max points 2. passfail: for pass/fail assessments 3. selectbox: for predefined grade options 4. text: for text-only feedback returns a gradeobject json block containing the created grade object's data, including its assigned id. requires oauth2 scope: - grades:gradeobjects:write available in api versions 1.75+ (lms v20.24.5+)

Action Parameters

grade_object
objectRequired
org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_CREATE_QUIZ

Creates a new quiz in d2l brightspace. notes: - numberofattemptsallowed must be between 1 and 10 (inclusive) or null for unlimited - password must not be empty or whitespace if provided - notificationemail must be a valid email address if provided - timelimitvalue: 0 for no limit (with isenforced false), or 1-9999 for enforced limit - deductionpercentage must be between 0 and 100 if provided - as of le api v1.71: - latelimitminutes is ignored - latesubmissionoption 1 is treated as 2 (autosubmitattempt) - submissiongraceperiod is not used - pagingtypeid added in le api v1.78 - date fields should be in utc format requires oauth2 scopes: - quizzing:quizzes:read - quizzing:quizzes:create available in api versions 1.75+ (lms v20.24.5+)

Action Parameters

org_unit_id
integerRequired
quiz_data
objectRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_CREATE_QUIZ_CATEGORY

Creates a new quiz category in d2l brightspace. returns a quizcategoryreaddata json block containing: - categoryid: the id of the created category - name: the name of the category - sortorder: the sort order value requires oauth2 scopes: - quizzing:quizzes:read - quizzing:quizzes:create available in api versions 1.75+ (lms v20.24.5+)

Action Parameters

category_data
objectRequired
org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_CREATE_USER

Creates a new user entity in d2l brightspace. requires oauth2 scope: - users:userdata:create available in api versions 1.46+ (lms v20.24.3+) notes: - firstname and lastname are used as legal names - externalemail must be null or a valid email address - orgdefinedid must be unique across the organization if provided - preferred names must be set separately after user creation

Action Parameters

user_data
objectRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_DELETE_A_COURSE_TEMPLATE

Deletes a course template from d2l brightspace. requires oauth2 scope: - orgunits:course:delete available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_DELETE_COURSE

Deletes a course offering from d2l brightspace. requires oauth2 scope: - orgunits:course:delete available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_DELETE_GRADE_OBJECT

Deletes a specific grade object from an org unit. requires oauth2 scope: - grades:gradeobjects:delete available in api versions 1.75+ (lms v20.24.5+)

Action Parameters

grade_object_id
integerRequired
org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_DELETE_QUIZ

Deletes a quiz from d2l brightspace. requires oauth2 scope: - quizzing:quizzes:delete available in api versions 1.75+ (lms v20.24.5+)

Action Parameters

org_unit_id
integerRequired
quiz_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_DELETE_QUIZ_CATEGORY

Deletes a quiz category from d2l brightspace. requires oauth2 scope: - quizzing:quizzes:delete available in api versions 1.75+ (lms v20.24.5+)

Action Parameters

category_id
integerRequired
org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_DELETE_USER

Deletes a user entity from d2l brightspace. requires oauth2 scope: - users:userdata:delete available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

user_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_DELETE_USER_DEMOGRAPHICS

Deletes one or more of a particular user's associated demographics entries. notes: - if entry ids are provided, only those specific entries will be deleted - if entry ids are not provided, all demographics entries for the user will be deleted requires oauth2 scope: - demographics:user:delete available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

entry_ids
array
user_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_GET_A_COURSE_OFFERING

Retrieves a specific course offering from d2l brightspace. returns a courseoffering json block with the course's information. requires oauth2 scope: - orgunits:course:read available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_GET_A_COURSE_TEMPLATE

Retrieves a course template from d2l brightspace. returns a coursetemplate json block with the template's information. available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_GET_COURSE_SCHEMA

Retrieves the list of parent org unit type constraints for course offerings. returns a json array of schemaelement blocks defining the allowed parent organizational unit types for courses. available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_GET_COURSE_TEMPLATE_SCHEMA

Retrieves the list of parent org unit type constraints for course offerings built on this template. returns a json array of schemaelement blocks defining the allowed parent organizational unit types for course templates. available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: D2LBRIGHTSPACE_GET_ENROLLED_ROLES

Retrieves a list of all enrolled user roles the calling user can view in an org unit. returns a json array of role data blocks containing the properties of all user roles that the calling user context has permission to view and that are currently enrolled in the provided org unit. requires oauth2 scope: - role:detail:read available in api versions 1.46+ (lms v20.24.3+)

Action Parameters

org_unit_id
integerRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired