Rubric
The Rubric object
The Rubric object looks like this in JSON:
{
"object": "rubric",
"id": 1,
"course_offering_id": null,
"cloned_from_id": null,
"name": "Non-fiction Writing 1",
"description": null,
"published": false,
"retired_by_id": null,
"retired_at": null,
"added_at": "2022-07-18T23:18:05+00:00",
"added_by_id": 10,
"sandbox": true
}
| Attribute | Required | Data Type |
|---|---|---|
| id | Yes | int |
| course_offering_id | No | int |
| cloned_from_id | No | int |
| name | No | text (255) |
| description | No | text (1000) |
| published | Yes | bool |
| retired_by_id | No | int |
| retired_at | No | datetime |
| added_at | No | datetime |
| added_by_id | No | int |
| sandbox | No | bool |
index
Example code to call this method:
curl "https://yourschool.populiweb.com/api2/rubrics" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_POPULI_API_KEY" \
-X GET
require 'httparty'
response = HTTParty.get(
'https://yourschool.populiweb.com/api2/rubrics',
headers: {
'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
},
)
puts response.body
import requests
response = requests.get(
'https://yourschool.populiweb.com/api2/rubrics',
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/rubrics"), 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/rubrics');
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": 1,
"results": 1,
"results_per_page": null,
"pages": 1,
"page": 1,
"offset": 0,
"has_more": false,
"data": [
{
"object": "rubric",
"id": 1,
"course_offering_id": null,
"cloned_from_id": null,
"name": "Non-fiction Writing 1",
"description": null,
"published": false,
"retired_by_id": null,
"retired_at": null,
"added_at": "2022-07-18T23:18:05+00:00",
"added_by_id": 10
}
],
"sandbox": true
}
Retrieves all Rubric objects.
HTTP Request
GET /rubrics
Parameters
None
Permissions
One of the following roles is required to call this method:
- Academic Auditor
- Academic Admin
show
Example code to call this method:
curl "https://yourschool.populiweb.com/api2/rubrics/(rubric)" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_POPULI_API_KEY" \
-X GET
require 'httparty'
response = HTTParty.get(
'https://yourschool.populiweb.com/api2/rubrics/(rubric)',
headers: {
'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
},
)
puts response.body
import requests
response = requests.get(
'https://yourschool.populiweb.com/api2/rubrics/(rubric)',
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/rubrics/(rubric)"), 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/rubrics/(rubric)');
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": "rubric",
"id": 1,
"course_offering_id": null,
"cloned_from_id": null,
"name": "Non-fiction Writing 1",
"description": null,
"published": false,
"retired_by_id": null,
"retired_at": null,
"added_at": "2022-07-18T23:18:05+00:00",
"added_by_id": 10,
"sandbox": true
}
Retrieves a specific Rubric object.
HTTP Request
GET /rubrics/(rubric)
Parameters
No additional parameters are needed beyond the ID of the object being requested that appears in the URL.
Expandable Properties
- criteria
Permissions
One of the following roles is required to call this method:
- Academic Auditor
- Academic Admin