Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.09 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.09 KB

edx_course_team_api

Exposes API to add course team member in Studio.

Usage

Base Url

${STUDIO_URL}/sn-api

Add course team member

POST /course-team/<course_key>/modify_access

The JSON body requires two parameters.

  • email: An existed user.
  • role: One of staff, instructor.

Sample request

{
    "email": "[email protected]",
    "role": "instructor"
}

Sample response

{
    "message": "User is added to course-v1:IBMDeveloperSkillsNetwork+CB0103EN+v1333."
}

Remove course team member

DELETE /course-team/<course_key>/modify_access

The JSON body requires one paramter.

  • email: An existed user.

Sample request

{
    "email": "[email protected]",
}

Sample response

{
    "message": "User is removed from course-v1:IBMDeveloperSkillsNetwork+CB0103EN+v1333."
}

Implementation

The handler is taken from edx/edx-platform/cms/djangoapps/contentstore/views/user.py.