Skip to content

ToggleCourseVisibilityView

Verplant edited this page Sep 27, 2017 · 2 revisions

Introduction

This class is used to change the "is_visible" state of a course. 'True' means, that users can see the course in their dashboards and False the opposite. Courses are referenced via the general url "clonecademy.com/courses/".

Method Details

'post'

Header: user id (for permissions), course id (from url)

Request: Leaving out the "is_visible" content of the request, and therefore posting no data at all, toggles the state.

{
"is_visible": "true"|"false" (optional)  
}

Response: 200 (visibility changed), 400-404 (Bad Requests), 500+ (internal error)

Clone this wiki locally