Shared Assignments
You can create shared assignments in classrooms you choose , just make sure that the
user is a teacher of these classrooms
Create a shared assignment
{Tenant endpoint}/shared-assignments
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 |
teacher_id
|
YES
|
integer
|
the teacher to manage the shared assignment.
|
name
|
YES
|
string
|
the name to appear for the section and shared section across
classrooms.
|
description
|
YES
|
string
|
description of the shared assignment
|
classrooms
|
YES
|
array
|
array of integers , which are the id's of the classrooms
you want to create the shared assignment in.
|
max_attempts
|
YES
|
integer
|
number of allowed attempts for each user
|
experiment_id
|
YES
|
integer
|
id of desired experiment to be in the shared assignment
section
|
starts_at
|
OPTIONAL (required if ends_at is present)
|
date time string
|
time represnting when the section is available to students in the lecture
|
ends_at
|
OPTIONAL (required if startss_at is present)
|
date time string
|
time represnting when the section is no longer available to students in the lecture
|
Get all shared assignments (for a given teacher id)
{Tenant endpoint}/shared-assignments
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 |
teacher_id
|
YES
|
integer
|
id of teacher to get the shared assignments that belongs to
that teacher
|
Get a shared assignment
{Tenant endpoint}/shared-assignments/{shared_assignment_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 |
No parameters rquired for this request
|
Update a shared assignment
{Tenant endpoint}/shared-assignments/{shared_assignment_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 |
shared_assignment_id
|
YES
|
string
|
the id of the desired shared assignment to edit
(send in the url not in the body of the
request).
|
name
|
YES
|
string
|
name of the shared assignment
|
description
|
YES
|
string
|
description of the shared assignment
|
classrooms
|
YES
|
array
|
array of integers , which are the id's of the classrooms
you want to create the shared assignment in.
|
max_attempts
|
YES
|
integer
|
number of allowed attempts for each user
|
experiment_id
|
YES
|
integer
|
id of desired experiment to be in the shared assignment
section
|
starts_at
|
OPTIONAL (required if ends_at is present)
|
date time string
|
time represnting when the section is available to students in the lecture
|
ends_at
|
OPTIONAL (required if startss_at is present)
|
date time string
|
time represnting when the section is no longer available to students in the lecture
|
Delete a shared assignment
{Tenant endpoint}/shared-assignments/{shared_assignment_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 |
shared_assignment_id
|
YES
|
string
|
the id of the desired shared assignment to delete
(send in the url not in the body of the
request).
|
Get grades for a shared assignment
{Tenant endpoint}/shared-assignments/{shared_assignment_id}/get-grades
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 |
shared_assignment_id
|
YES
|
integer
|
id of shared assignment to get the grades of
|