Sections
You can create , update , delete sections that belongs to lectures in classrooms
using our api.
Create a new section
{Tenant endpoint}/sections
type :
headers
Name |
required |
type |
description |
referer
|
YES
|
string
|
The root of the application that is sending the request
(your
website at jusoorlabs.com)
|
accept
|
YES
|
string
|
the basic accept header (always send it as application/json)
|
token
|
YES
|
string
|
The token provided to you once you've registerd with
Jusoor Labs API.
|
parameters
Name |
required |
type |
description |
name
|
YES
|
string
|
the name of the section to be created.
|
lecture_id
|
YES
|
integer
|
Id of the lecture that this section belongs to.
|
experiment_id
|
YES
|
integer
|
Id of the experiment that this section will have.
|
description
|
OPTIONAL
|
string
|
brief description about the section.
|
max_attempts
|
YES
|
Integer
|
the maximum number of experiment attempts each student is
allowed to perform.
|
Update a section
{Tenant endpoint}/sections/{section_id}
type : or (if you send data as form data)
headers
Name |
required |
type |
description |
referer
|
YES
|
string
|
The root of the application that is sending the request
(your
website at jusoorlabs.com)
|
accept
|
YES
|
string
|
the basic accept header (always send it as application/json)
|
token
|
YES
|
string
|
The token provided to you once you've registerd with
Jusoor Labs API.
|
parameters
Name |
required |
type |
description |
section_id
|
YES
|
Integer
|
the id of the desired section to get (send in the url not in the body of the
request).
|
name
|
OPTIONAL
|
string
|
the name of the section to be created.
|
description
|
OPTIONAL
|
string
|
brief description about the section.
|
experiment_id
|
OPTIONAL
|
Integer
|
Id of the experiment that this section will have.
|
max_attempts
|
OPTIONAL
|
Integer
|
the maximum number of experiment attempts each student is
allowed to perform.
|
Delete a section
{Tenant endpoint}/sections/{section_id}
type :
headers
Name |
required |
type |
description |
referer
|
YES
|
string
|
The root of the application that is sending the request
(your
website at jusoorlabs.com)
|
accept
|
YES
|
string
|
the basic accept header (always send it as application/json)
|
token
|
YES
|
string
|
The token provided to you once you've registerd with
Jusoor Labs API.
|
parameters
Name |
required |
type |
description |
section_id
|
YES
|
Integer
|
the id of the desired lecture to get (send in the url not in the body of the
request).
|