NAV
shell ruby python csharp php

File Folder

The File Folder object

The File Folder object looks like this in JSON:

{
    "object": "file_folder",
    "id": 1,
    "parent_folder_id": null,
    "owner_type": "course_offering",
    "owner_id": 21908,
    "name": "Folder Created During Clone",
    "trashed_by_id": null,
    "trashed_at": null,
    "added_at": "2025-11-30T20:59:30+00:00",
    "added_by_id": 10,
    "sandbox": true,
    "api_version": null
}
Attribute Required Data Type
id Yes int
parent_folder_id No int
owner_type Yes enum (user, group, course_offering)
owner_id No int
name Yes text (255)
trashed_by_id No int
trashed_at No datetime
added_at No datetime
added_by_id No int
sandbox No bool
api_version No --

index (courseoffering)

Example code to call this method:

curl "https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/folders" \
-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)/folders',
 headers: {
  'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
 },
)
puts response.body
import requests
response = requests.get(
 'https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/folders',
 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)/folders"), 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)/folders');
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": "file_folder",
            "id": 1,
            "parent_folder_id": null,
            "owner_type": "course_offering",
            "owner_id": 21908,
            "name": "Folder Created During Clone",
            "trashed_by_id": null,
            "trashed_at": null,
            "added_at": "2025-11-30T20:59:30+00:00",
            "added_by_id": 10
        }
    ],
    "sandbox": true,
    "api_version": "2026-07-13"
}

Retrieves all File Folder objects tied to a specific Courseoffering.

HTTP Request

GET /courseofferings/(courseoffering)/folders

Parameters

None

Permissions

One of the following roles is required to call this method:

show (courseoffering)

Example code to call this method:

curl "https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/folders/(filefolder)" \
-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)/folders/(filefolder)',
 headers: {
  'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
 },
)
puts response.body
import requests
response = requests.get(
 'https://yourschool.populiweb.com/api2/courseofferings/(courseoffering)/folders/(filefolder)',
 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)/folders/(filefolder)"), 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)/folders/(filefolder)');
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": "file_folder",
    "id": 1,
    "parent_folder_id": null,
    "owner_type": "course_offering",
    "owner_id": 21908,
    "name": "Folder Created During Clone",
    "trashed_by_id": null,
    "trashed_at": null,
    "contents": [
        {
            "object": "file",
            "id": 10,
            "file_data_id": 7,
            "name": "folder_file.pdf",
            "alt": null,
            "contenttype": "application\/pdf",
            "size": 8192,
            "added_to": 1,
            "filename": null,
            "status": "active",
            "trashed_by_id": null,
            "type": "FOLDER",
            "mime_type": "application\/pdf",
            "media_type": null,
            "encoding_status": null,
            "added_at": "2025-11-30T20:59:30+00:00",
            "added_by_id": 10
        }
    ],
    "added_at": "2025-11-30T20:59:30+00:00",
    "added_by_id": 10,
    "sandbox": true,
    "api_version": "2026-07-13"
}

Retrieves a specific File Folder object. The response includes a contents array containing the files and subfolders directly inside the folder.

HTTP Request

GET /courseofferings/(courseoffering)/folders/(filefolder)

Parameters

No additional parameters are needed beyond the ID of the object being requested that appears in the URL.

Permissions

One of the following roles is required to call this method: