AssignmentTestInstance
The AssignmentTestInstance object
The AssignmentTestInstance object looks like this in JSON:
{
"object": "assignment_test_instance",
"id": 876,
"student_id": 1,
"test_id": 434,
"grade_coef": 0.9875,
"start_time": "2012-10-10T22:58:01+00:00",
"end_time": "2012-10-10T22:59:35+00:00",
"start_window": "2012-10-01T17:00:00+00:00",
"end_window": "2013-10-31T19:00:00+00:00",
"time_limit": 1800,
"proctored": false,
"proctor_id": null,
"proctoring_status": null,
"integrity_controls": false,
"full_screen": false,
"copy_paste": false,
"webcam": false,
"sandbox": true
}
| Attribute | Required | Data Type |
|---|---|---|
| id | Yes | int |
| student_id | Yes | int |
| test_id | Yes | int |
| grade_coef | Yes | decimal |
| start_time | Yes | datetime |
| end_time | Yes | datetime |
| start_window | No | datetime |
| end_window | No | datetime |
| time_limit | Yes | int |
| proctored | No | bool |
| proctor_id | No | int |
| proctoring_status | No | enum (started, completed) |
| integrity_controls | Yes | bool |
| full_screen | Yes | bool |
| copy_paste | Yes | bool |
| webcam | Yes | bool |
| sandbox | No | bool |
index
Example code to call this method:
curl "https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_POPULI_API_KEY" \
-X GET
require 'httparty'
response = HTTParty.get(
'https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances',
headers: {
'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
},
)
puts response.body
import requests
response = requests.get(
'https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances',
headers={
'Authorization': 'Bearer YOUR_POPULI_API_KEY'
},
)
print(response.json())
using Newtonsoft.Json;
using RestSharp;
var client = new RestClient();
var request = new RestRequest(new Uri("https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances"), Method.Get);
request.AddHeader("Authorization", "Bearer YOUR_POPULI_API_KEY");
var response = client.Execute(request);
var response_object = JsonConvert.DeserializeObject(response.Content);
Console.Write(response_object);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances');
curl_setopt($curl, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_POPULI_API_KEY']);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($curl);
$response_decoded = json_decode($response);
var_dump($response_decoded);
Example response:
{
"object": "list",
"count": 3,
"results": 3,
"results_per_page": null,
"pages": 1,
"page": 1,
"offset": 0,
"has_more": false,
"data": [
{
"object": "assignment_test_instance",
"id": 876,
"student_id": 1,
"test_id": 434,
"grade_coef": 0.9875,
"start_time": "2012-10-10T22:58:01+00:00",
"end_time": "2012-10-10T22:59:35+00:00",
"start_window": "2012-10-01T17:00:00+00:00",
"end_window": "2013-10-31T19:00:00+00:00",
"time_limit": 1800,
"proctored": false,
"proctor_id": null,
"proctoring_status": null,
"integrity_controls": false,
"full_screen": false,
"copy_paste": false,
"webcam": false
}
],
"sandbox": true
}
Retrieves all AssignmentTestInstance objects (test submissions), tied to specific test Assignment in a specific Courseoffering.
HTTP Request
GET /courseofferings/(courseoffering)/assignments/(assignment)/testinstances
Parameters
None
Permissions
One of the following roles is required to call this method:
- Academic Auditor
- Registrar
- Academic Admin
index (person)
Example code to call this method:
curl "https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances/(person)" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_POPULI_API_KEY" \
-X GET
require 'httparty'
response = HTTParty.get(
'https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances/(person)',
headers: {
'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
},
)
puts response.body
import requests
response = requests.get(
'https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances/(person)',
headers={
'Authorization': 'Bearer YOUR_POPULI_API_KEY'
},
)
print(response.json())
using Newtonsoft.Json;
using RestSharp;
var client = new RestClient();
var request = new RestRequest(new Uri("https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances/(person)"), Method.Get);
request.AddHeader("Authorization", "Bearer YOUR_POPULI_API_KEY");
var response = client.Execute(request);
var response_object = JsonConvert.DeserializeObject(response.Content);
Console.Write(response_object);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/assignments/(assignment)/testinstances/(person)');
curl_setopt($curl, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_POPULI_API_KEY']);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($curl);
$response_decoded = json_decode($response);
var_dump($response_decoded);
Example response:
{
"object": "list",
"count": 0,
"results": 0,
"results_per_page": null,
"pages": 1,
"page": 1,
"offset": 0,
"has_more": false,
"data": [],
"sandbox": true
}
Retrieves all AssignmentTestInstance objects (test submissions), tied to specific test Assignment and a specific Person in a specific Courseoffering.
HTTP Request
GET /courseofferings/(courseoffering)/assignments/(assignment)/testinstances/(person)
Parameters
None
Expandable Properties
- test
- student
- proctor
- sections
- questions
Permissions
One of the following roles is required to call this method:
- Academic Auditor
- Registrar
- Academic Admin