Exposes API to add course team member in Studio.
${STUDIO_URL}/sn-api
POST /course-team/<course_key>/modify_access
The JSON body requires two parameters.
email
: An existed user.role
: One ofstaff
,instructor
.
Sample request
{
"email": "instructor@example.com",
"role": "instructor"
}
Sample response
{
"message": "User is added to course-v1:IBMDeveloperSkillsNetwork+CB0103EN+v1333."
}
DELETE /course-team/<course_key>/modify_access
The JSON body requires one paramter.
email
: An existed user.
Sample request
{
"email": "instructor@example.com",
}
Sample response
{
"message": "User is removed from course-v1:IBMDeveloperSkillsNetwork+CB0103EN+v1333."
}
The handler is taken from edx/edx-platform/cms/djangoapps/contentstore/views/user.py.